Facade for low-level media player objects. 更多...
#include <MediaPlayerFacade.h>
类 FMediaPlayerFacade 继承关系图:Public 成员函数 | |
| void | AddAudioSampleSink (const TSharedRef< FMediaAudioSampleSink, ESPMode::ThreadSafe > &SampleSink) |
| Add the given audio sample sink to this player. 更多... | |
| void | AddCaptionSampleSink (const TSharedRef< FMediaOverlaySampleSink, ESPMode::ThreadSafe > &SampleSink) |
| Add the given audio sample sink to this player. 更多... | |
| void | AddMetadataSampleSink (const TSharedRef< FMediaBinarySampleSink, ESPMode::ThreadSafe > &SampleSink) |
| Add the given audio sample sink to this player. 更多... | |
| void | AddSubtitleSampleSink (const TSharedRef< FMediaOverlaySampleSink, ESPMode::ThreadSafe > &SampleSink) |
| Add the given audio sample sink to this player. 更多... | |
| void | AddVideoSampleSink (const TSharedRef< FMediaTextureSampleSink, ESPMode::ThreadSafe > &SampleSink) |
| Add the given audio sample sink to this player. 更多... | |
| bool | CanPause () const |
| Whether playback can be paused. 更多... | |
| bool | CanPlayUrl (const FString &Url, const IMediaOptions *Options) |
| Whether the specified URL can be played by this player. 更多... | |
| bool | CanResume () const |
| Whether playback can be resumed. 更多... | |
| bool | CanScrub () const |
| Whether playback can be scrubbed. 更多... | |
| bool | CanSeek () const |
| Whether playback can jump to a position. 更多... | |
| void | Close () |
| Close the currently open media, if any. | |
| DECLARE_EVENT_OneParam (FMediaPlayerFacade, FOnMediaEvent, EMediaEvent) FOnMediaEvent &OnMediaEvent() | |
| Get an event delegate that is invoked when a media event occurred. | |
| FMediaPlayerFacade () | |
| Default constructor. | |
| uint32 | GetAudioTrackChannels (int32 TrackIndex, int32 FormatIndex) const |
| Get the number of channels in the specified audio track. 更多... | |
| uint32 | GetAudioTrackSampleRate (int32 TrackIndex, int32 FormatIndex) const |
| Get the sample rate of the specified audio track. 更多... | |
| FString | GetAudioTrackType (int32 TrackIndex, int32 FormatIndex) const |
| Get the type of the specified audio track format. 更多... | |
| FTimespan | GetDuration () const |
| Get the media's duration. 更多... | |
| const FGuid & | GetGuid () |
| Get the player's globally unique identifier. 更多... | |
| FString | GetInfo () const |
| Get debug information about the player and currently opened media. 更多... | |
| FTimespan | GetLastAudioRenderedSampleTime () const |
| Get time of last audio sample played 更多... | |
| FText | GetMediaName () const |
| Get the human readable name of the currently loaded media source. 更多... | |
| int32 | GetNumTrackFormats (EMediaTrackType TrackType, int32 TrackIndex) const |
| Get the number of formats of the specified track. 更多... | |
| int32 | GetNumTracks (EMediaTrackType TrackType) const |
| Get the number of tracks of the given type. 更多... | |
| TSharedPtr< IMediaPlayer, ESPMode::ThreadSafe > | GetPlayer () const |
| Get the low-level player associated with this object. 更多... | |
| FName | GetPlayerName () const |
| Get the name of the current native media player. 更多... | |
| float | GetRate () const |
| Get the media's current playback rate. 更多... | |
| int32 | GetSelectedTrack (EMediaTrackType TrackType) const |
| Get the index of the currently selected track of the given type. 更多... | |
| FString | GetStats () const |
| Get playback statistics information. 更多... | |
| TRangeSet< float > | GetSupportedRates (bool Unthinned=true) const |
| Get the supported playback rates. 更多... | |
| FTimespan | GetTime () const |
| Get the media's current playback time. 更多... | |
| FMediaTimeStamp | GetTimeStamp () const |
| Get the media's current playback time stamp. 更多... | |
| FText | GetTrackDisplayName (EMediaTrackType TrackType, int32 TrackIndex) const |
| Get the human readable name of the specified track. 更多... | |
| int32 | GetTrackFormat (EMediaTrackType TrackType, int32 TrackIndex) const |
| Get the index of the active format of the specified track. 更多... | |
| FString | GetTrackLanguage (EMediaTrackType TrackType, int32 TrackIndex) const |
| Get the language tag of the specified track. 更多... | |
| const FString & | GetUrl () const |
| Get the URL of the currently loaded media, if any. 更多... | |
| float | GetVideoTrackAspectRatio (int32 TrackIndex, int32 FormatIndex) const |
| Get the aspect ratio of the specified video track. 更多... | |
| FIntPoint | GetVideoTrackDimensions (int32 TrackIndex, int32 FormatIndex) const |
| Get the width and height of the specified video track. 更多... | |
| float | GetVideoTrackFrameRate (int32 TrackIndex, int32 FormatIndex) const |
| Get frame rate of the specified video track. 更多... | |
| TRange< float > | GetVideoTrackFrameRates (int32 TrackIndex, int32 FormatIndex) const |
| Get the supported range of frame rates of the specified video track. 更多... | |
| FString | GetVideoTrackType (int32 TrackIndex, int32 FormatIndex) const |
| Get the type of the specified video track format. 更多... | |
| bool | GetViewField (float &OutHorizontal, float &OutVertical) const |
| Get the field of view. 更多... | |
| bool | GetViewOrientation (FQuat &OutOrientation) const |
| Get the view's orientation. 更多... | |
| bool | HasError () const |
| Check whether the player is in an error state. 更多... | |
| bool | IsBuffering () const |
| Whether the player is currently buffering data. 更多... | |
| bool | IsClosed () const |
| Whether media is currently closed. 更多... | |
| bool | IsConnecting () const |
| Whether the player is currently connecting to a media source. 更多... | |
| bool | IsLooping () const |
| Whether playback is looping. 更多... | |
| bool | IsPaused () const |
| Whether playback is currently paused. 更多... | |
| bool | IsPlaying () const |
| Whether playback is in progress. 更多... | |
| bool | IsPreparing () const |
| Whether the media is currently opening or buffering. 更多... | |
| bool | IsReady () const |
| Whether media is ready for playback. 更多... | |
| bool | Open (const FString &Url, const IMediaOptions *Options, const FMediaPlayerOptions *PlayerOptions=nullptr) |
| Open a media source from a URL with optional parameters. 更多... | |
| void | QueryCacheState (EMediaTrackType TrackType, EMediaCacheState State, TRangeSet< FTimespan > &OutTimeRanges) const |
| Query the time ranges of cached media samples for the specified caching state. 更多... | |
| bool | Seek (const FTimespan &Time) |
| Seeks to the specified playback time. 更多... | |
| bool | SelectTrack (EMediaTrackType TrackType, int32 TrackIndex) |
| Select the active track of the given type. 更多... | |
| void | SetBlockOnTime (const FTimespan &Time) |
| Set the time on which to block. 更多... | |
| void | SetCacheWindow (FTimespan Ahead, FTimespan Behind) |
| Set sample caching options. 更多... | |
| void | SetGuid (FGuid &Guid) |
| Set the player's globally unique identifier. 更多... | |
| void | SetLastAudioRenderedSampleTime (FTimespan SampleTime) |
| Record last audio sample played to track audio sync (for automated tests) 更多... | |
| bool | SetLooping (bool Looping) |
| Enables or disables playback looping. 更多... | |
| void | SetMediaOptions (const IMediaOptions *Options) |
| Changes media ooptions on the player. | |
| bool | SetNativeVolume (float Volume) |
| Changes the media's native volume. 更多... | |
| bool | SetRate (float Rate) |
| Changes the media's playback rate. 更多... | |
| bool | SetTrackFormat (EMediaTrackType TrackType, int32 TrackIndex, int32 FormatIndex) |
| Set the format on the specified track. 更多... | |
| bool | SetVideoTrackFrameRate (int32 TrackIndex, int32 FormatIndex, float FrameRate) |
| Set the frame rate of the specified video track. 更多... | |
| bool | SetViewField (float Horizontal, float Vertical, bool Absolute) |
| Set the field of view. 更多... | |
| bool | SetViewOrientation (const FQuat &Orientation, bool Absolute) |
| Set the view's orientation. 更多... | |
| bool | SupportsRate (float Rate, bool Unthinned) const |
| Whether the specified playback rate is supported. 更多... | |
| virtual void | TickFetch (FTimespan DeltaTime, FTimespan Timecode) override |
| Called each tick to handle updates after the Engine ticked. 更多... | |
| virtual void | TickInput (FTimespan DeltaTime, FTimespan Timecode) override |
| Called each tick to handle input before the Engine is ticked. 更多... | |
| virtual void | TickOutput (FTimespan DeltaTime, FTimespan Timecode) override |
| Called each tick to output the rendered frame. 更多... | |
| virtual void | TickTickable () override |
| Tick the object. | |
| virtual | ~FMediaPlayerFacade () |
| Virtual destructor. | |
Public 成员函数 继承自 IMediaClockSink | |
| virtual void | TickFetch (FTimespan DeltaTime, FTimespan Timecode) |
| Called each tick to handle updates after the Engine ticked. 更多... | |
| virtual void | TickInput (FTimespan DeltaTime, FTimespan Timecode) |
| Called each tick to handle input before the Engine is ticked. 更多... | |
| virtual void | TickOutput (FTimespan DeltaTime, FTimespan Timecode) |
| Called each tick to output the rendered frame. 更多... | |
| virtual void | TickRender (FTimespan DeltaTime, FTimespan Timecode) |
| Called each tick before the frame finished rendering. 更多... | |
| virtual | ~IMediaClockSink () |
| Virtual destructor. | |
Public 成员函数 继承自 IMediaTickable | |
| virtual void | TickTickable ()=0 |
| Tick the object. | |
| virtual | ~IMediaTickable () |
| Virtual destructor. | |
Public 成员函数 继承自 TSharedFromThis< FMediaPlayerFacade, ESPMode::ThreadSafe > | |
| TSharedRef< FMediaPlayerFacade, Mode > | AsShared () |
| Provides access to a shared reference to this object. 更多... | |
| TSharedRef< FMediaPlayerFacade const, Mode > | AsShared () const |
| Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多... | |
| FORCEINLINE bool | DoesSharedInstanceExist () const |
| Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多... | |
| FORCEINLINE void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const |
| INTERNAL USE ONLY – Do not call this method. 更多... | |
| FORCEINLINE void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const |
| INTERNAL USE ONLY – Do not call this method. 更多... | |
Public 属性 | |
| TOptional< FMediaPlayerOptions > | ActivePlayerOptions |
| Active media player options. | |
| FName | DesiredPlayerName |
| Name of the desired native player, if any. | |
| FTimespan | TimeDelay |
| Extra time to reduce from current player's time. | |
Protected 成员函数 | |
| bool | BlockOnFetch () const |
| Whether sample fetching should block. 更多... | |
| void | FlushSinks () |
| Flush all media sample sinks. | |
| bool | GetAudioTrackFormat (int32 TrackIndex, int32 FormatIndex, FMediaAudioTrackFormat &OutFormat) const |
| Get details about the specified audio track format. 更多... | |
| TSharedPtr< IMediaPlayer, ESPMode::ThreadSafe > | GetPlayerForUrl (const FString &Url, const IMediaOptions *Options) |
| Get a player that can play the specified media URL. 更多... | |
| bool | GetVideoTrackFormat (int32 TrackIndex, int32 FormatIndex, FMediaVideoTrackFormat &OutFormat) const |
| Get details about the specified audio track format. 更多... | |
| void | ProcessAudioSamples (IMediaSamples &Samples, TRange< FTimespan > TimeRange) |
| Fetch audio samples from the player and forward them to the registered sinks. | |
| void | ProcessCaptionSamples (IMediaSamples &Samples, TRange< FTimespan > TimeRange) |
| Fetch audio samples from the player and forward them to the registered sinks. | |
| void | ProcessEvent (EMediaEvent Event) |
| Process the given media event. 更多... | |
| void | ProcessMetadataSamples (IMediaSamples &Samples, TRange< FTimespan > TimeRange) |
| Fetch metadata samples from the player and forward them to the registered sinks. | |
| void | ProcessSubtitleSamples (IMediaSamples &Samples, TRange< FTimespan > TimeRange) |
| Fetch subtitle samples from the player and forward them to the registered sinks. | |
| void | ProcessVideoSamples (IMediaSamples &Samples, TRange< FTimespan > TimeRange) |
| Fetch video samples from the player and forward them to the registered sinks. | |
| void | ReceiveMediaEvent (EMediaEvent Event) override |
| Receive the given media event. 更多... | |
| void | SelectDefaultTracks () |
| Select the default media tracks. | |
Protected 成员函数 继承自 IMediaEventSink | |
| virtual void | ReceiveMediaEvent (EMediaEvent Event)=0 |
| Receive the given media event. 更多... | |
| virtual | ~IMediaEventSink () |
| Virtual destructor. | |
Protected 成员函数 继承自 TSharedFromThis< FMediaPlayerFacade, ESPMode::ThreadSafe > | |
| FORCEINLINE TSharedFromThis & | operator= (TSharedFromThis const &) |
| Hidden stub assignment operator | |
| TSharedFromThis () | |
| Hidden stub constructor | |
| TSharedFromThis (TSharedFromThis const &) | |
| Hidden stub copy constructor | |
| ~TSharedFromThis () | |
| Hidden destructor | |
| TSharedRef< FMediaPlayerFacade, Mode > | AsShared () |
| Provides access to a shared reference to this object. 更多... | |
| TSharedRef< FMediaPlayerFacade const, Mode > | AsShared () const |
| Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多... | |
| FORCEINLINE bool | DoesSharedInstanceExist () const |
| Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多... | |
| FORCEINLINE void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const |
| INTERNAL USE ONLY – Do not call this method. 更多... | |
| FORCEINLINE void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const |
| INTERNAL USE ONLY – Do not call this method. 更多... | |
额外继承的成员函数 | |
静态 Protected 成员函数 继承自 TSharedFromThis< FMediaPlayerFacade, ESPMode::ThreadSafe > | |
| static FORCEINLINE TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
| Provides access to a shared reference to an object, given the object's 'this' pointer. 更多... | |
| static FORCEINLINE TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| Provides access to a shared reference to an object, given the object's 'this' pointer. 更多... | |
Facade for low-level media player objects.
The purpose of this class is to provide a simpler interface to low-level media player implementations. It implements common functionality, such as translating between time codes and play times, and manages the selection and creation of player implementations for a given media source.
Note that, unlike the low-level methods in IMediaTracks, most track and track format related methods in this class allow for INDEX_NONE to be used as track and format indices in order to indicate the 'current selection'.
| void FMediaPlayerFacade::AddAudioSampleSink | ( | const TSharedRef< FMediaAudioSampleSink, ESPMode::ThreadSafe > & | SampleSink | ) |
Add the given audio sample sink to this player.
| SampleSink | The sink to receive audio samples. |
| void FMediaPlayerFacade::AddCaptionSampleSink | ( | const TSharedRef< FMediaOverlaySampleSink, ESPMode::ThreadSafe > & | SampleSink | ) |
Add the given audio sample sink to this player.
| SampleSink | The sink to receive caption samples. |
| void FMediaPlayerFacade::AddMetadataSampleSink | ( | const TSharedRef< FMediaBinarySampleSink, ESPMode::ThreadSafe > & | SampleSink | ) |
Add the given audio sample sink to this player.
| SampleSink | The sink to receive metadata samples. |
| void FMediaPlayerFacade::AddSubtitleSampleSink | ( | const TSharedRef< FMediaOverlaySampleSink, ESPMode::ThreadSafe > & | SampleSink | ) |
Add the given audio sample sink to this player.
| SampleSink | The sink to receive subtitle samples. |
| void FMediaPlayerFacade::AddVideoSampleSink | ( | const TSharedRef< FMediaTextureSampleSink, ESPMode::ThreadSafe > & | SampleSink | ) |
Add the given audio sample sink to this player.
| SampleSink | The sink to receive video samples. |
|
protected |
Whether sample fetching should block.
| bool FMediaPlayerFacade::CanPause | ( | ) | const |
| bool FMediaPlayerFacade::CanPlayUrl | ( | const FString & | Url, |
| const IMediaOptions * | Options | ||
| ) |
Whether the specified URL can be played by this player.
If a desired player name is set for this player, it will only check whether that particular player type can play the specified URL.
| Url | The URL to check. |
| Options | Optional media parameters. |
| bool FMediaPlayerFacade::CanResume | ( | ) | const |
| bool FMediaPlayerFacade::CanScrub | ( | ) | const |
| bool FMediaPlayerFacade::CanSeek | ( | ) | const |
| uint32 FMediaPlayerFacade::GetAudioTrackChannels | ( | int32 | TrackIndex, |
| int32 | FormatIndex | ||
| ) | const |
Get the number of channels in the specified audio track.
| TrackIndex | Index of the audio track. |
| FormatIndex | Index of the track format. |
|
protected |
Get details about the specified audio track format.
| TrackIndex | The index of the audio track. |
| FormatIndex | The index of the track's format. |
| OutFormat | Will contain the format details. |
| uint32 FMediaPlayerFacade::GetAudioTrackSampleRate | ( | int32 | TrackIndex, |
| int32 | FormatIndex | ||
| ) | const |
Get the sample rate of the specified audio track.
| TrackIndex | Index of the audio track. |
| FormatIndex | Index of the track format. |
| FString FMediaPlayerFacade::GetAudioTrackType | ( | int32 | TrackIndex, |
| int32 | FormatIndex | ||
| ) | const |
Get the type of the specified audio track format.
| TrackIndex | The index of the track. |
| FormatIndex | Index of the track format. |
| FTimespan FMediaPlayerFacade::GetDuration | ( | ) | const |
| const FGuid & FMediaPlayerFacade::GetGuid | ( | ) |
| FString FMediaPlayerFacade::GetInfo | ( | ) | const |
| FTimespan FMediaPlayerFacade::GetLastAudioRenderedSampleTime | ( | ) | const |
Get time of last audio sample played
| FText FMediaPlayerFacade::GetMediaName | ( | ) | const |
Get the human readable name of the currently loaded media source.
| int32 FMediaPlayerFacade::GetNumTrackFormats | ( | EMediaTrackType | TrackType, |
| int32 | TrackIndex | ||
| ) | const |
Get the number of formats of the specified track.
| TrackType | The type of media tracks. |
| TrackIndex | The index of the track. |
| int32 FMediaPlayerFacade::GetNumTracks | ( | EMediaTrackType | TrackType | ) | const |
Get the number of tracks of the given type.
| TrackType | The type of media tracks. |
|
inline |
Get the low-level player associated with this object.
|
protected |
Get a player that can play the specified media URL.
| Url | The URL to play. |
| Options | The media options for the URL. |
| FName FMediaPlayerFacade::GetPlayerName | ( | ) | const |
Get the name of the current native media player.
| float FMediaPlayerFacade::GetRate | ( | ) | const |
| int32 FMediaPlayerFacade::GetSelectedTrack | ( | EMediaTrackType | TrackType | ) | const |
Get the index of the currently selected track of the given type.
| TrackType | The type of track to get. |
| FString FMediaPlayerFacade::GetStats | ( | ) | const |
| TRangeSet< float > FMediaPlayerFacade::GetSupportedRates | ( | bool | Unthinned = true | ) | const |
Get the supported playback rates.
| Unthinned | Whether the rates are for unthinned playback (default = true). |
| FTimespan FMediaPlayerFacade::GetTime | ( | ) | const |
| FMediaTimeStamp FMediaPlayerFacade::GetTimeStamp | ( | ) | const |
| FText FMediaPlayerFacade::GetTrackDisplayName | ( | EMediaTrackType | TrackType, |
| int32 | TrackIndex | ||
| ) | const |
Get the human readable name of the specified track.
| TrackType | The type of track. |
| TrackIndex | The index of the track. |
| int32 FMediaPlayerFacade::GetTrackFormat | ( | EMediaTrackType | TrackType, |
| int32 | TrackIndex | ||
| ) | const |
Get the index of the active format of the specified track.
| TrackType | The type of track. |
| TrackIndex | The index of the track. |
| FString FMediaPlayerFacade::GetTrackLanguage | ( | EMediaTrackType | TrackType, |
| int32 | TrackIndex | ||
| ) | const |
Get the language tag of the specified track.
| TrackType | The type of track. |
| TrackIndex | The index of the track. |
|
inline |
Get the URL of the currently loaded media, if any.
| float FMediaPlayerFacade::GetVideoTrackAspectRatio | ( | int32 | TrackIndex, |
| int32 | FormatIndex | ||
| ) | const |
Get the aspect ratio of the specified video track.
| TrackIndex | The index of the track. |
| FormatIndex | Index of the track format. |
| FIntPoint FMediaPlayerFacade::GetVideoTrackDimensions | ( | int32 | TrackIndex, |
| int32 | FormatIndex | ||
| ) | const |
Get the width and height of the specified video track.
| TrackIndex | The index of the track. |
| FormatIndex | Index of the track format. |
|
protected |
Get details about the specified audio track format.
| TrackIndex | The index of the audio track. |
| FormatIndex | The index of the track's format. |
| OutFormat | Will contain the format details. |
| float FMediaPlayerFacade::GetVideoTrackFrameRate | ( | int32 | TrackIndex, |
| int32 | FormatIndex | ||
| ) | const |
Get frame rate of the specified video track.
| TrackIndex | The index of the track. |
| FormatIndex | Index of the track format. |
| TRange< float > FMediaPlayerFacade::GetVideoTrackFrameRates | ( | int32 | TrackIndex, |
| int32 | FormatIndex | ||
| ) | const |
Get the supported range of frame rates of the specified video track.
| TrackIndex | The index of the track. |
| FormatIndex | Index of the track format. |
| FString FMediaPlayerFacade::GetVideoTrackType | ( | int32 | TrackIndex, |
| int32 | FormatIndex | ||
| ) | const |
Get the type of the specified video track format.
| TrackIndex | The index of the track. |
| FormatIndex | Index of the track format. |
| bool FMediaPlayerFacade::GetViewField | ( | float & | OutHorizontal, |
| float & | OutVertical | ||
| ) | const |
Get the field of view.
| OutHorizontal | Will contain the horizontal field of view. |
| OutVertical | Will contain the vertical field of view. |
| bool FMediaPlayerFacade::GetViewOrientation | ( | FQuat & | OutOrientation | ) | const |
Get the view's orientation.
| OutOrientation | Will contain the view orientation. |
| bool FMediaPlayerFacade::HasError | ( | ) | const |
Check whether the player is in an error state.
| bool FMediaPlayerFacade::IsBuffering | ( | ) | const |
Whether the player is currently buffering data.
| bool FMediaPlayerFacade::IsClosed | ( | ) | const |
Whether media is currently closed.
| bool FMediaPlayerFacade::IsConnecting | ( | ) | const |
Whether the player is currently connecting to a media source.
| bool FMediaPlayerFacade::IsLooping | ( | ) | const |
Whether playback is looping.
| bool FMediaPlayerFacade::IsPaused | ( | ) | const |
| bool FMediaPlayerFacade::IsPlaying | ( | ) | const |
| bool FMediaPlayerFacade::IsPreparing | ( | ) | const |
| bool FMediaPlayerFacade::IsReady | ( | ) | const |
| bool FMediaPlayerFacade::Open | ( | const FString & | Url, |
| const IMediaOptions * | Options, | ||
| const FMediaPlayerOptions * | PlayerOptions = nullptr |
||
| ) |
Open a media source from a URL with optional parameters.
| Url | The URL of the media to open (file name or web address). |
| Options | Optional media parameters. |
| PlayerOptions | Optional player parameters. |
|
protected |
Process the given media event.
| Event | The event to process. |
| void FMediaPlayerFacade::QueryCacheState | ( | EMediaTrackType | TrackType, |
| EMediaCacheState | State, | ||
| TRangeSet< FTimespan > & | OutTimeRanges | ||
| ) | const |
Query the time ranges of cached media samples for the specified caching state.
| State | The sample state we're interested in. |
| OutTimeRanges | Will contain the set of matching sample time ranges. |
|
overrideprotectedvirtual |
Receive the given media event.
| Event | The event to receive. |
实现了 IMediaEventSink.
| bool FMediaPlayerFacade::Seek | ( | const FTimespan & | Time | ) |
Seeks to the specified playback time.
| Time | The playback time to set. |
| bool FMediaPlayerFacade::SelectTrack | ( | EMediaTrackType | TrackType, |
| int32 | TrackIndex | ||
| ) |
Select the active track of the given type.
The selected track will use its currently active format. Active formats will be remembered on a per track basis. The first available format is active by default. To switch the track format, use SetTrackFormat instead.
| TrackType | The type of track to select. |
| TrackIndex | The index of the track to select, or INDEX_NONE to deselect. |
| void FMediaPlayerFacade::SetBlockOnTime | ( | const FTimespan & | Time | ) |
Set the time on which to block.
If set, this player will block in TickFetch until the video sample for the specified time are actually available.
| Time | The time to block on, or FTimespan::MinValue to disable. |
Set sample caching options.
| Ahead | Duration of samples to cache ahead of the play head. |
| Behind | Duration of samples to cache behind the play head. |
| void FMediaPlayerFacade::SetGuid | ( | FGuid & | Guid | ) |
| void FMediaPlayerFacade::SetLastAudioRenderedSampleTime | ( | FTimespan | SampleTime | ) |
Record last audio sample played to track audio sync (for automated tests)
| SampleTime | Time of media sample currently being played |
| bool FMediaPlayerFacade::SetLooping | ( | bool | Looping | ) |
Enables or disables playback looping.
| Looping | Whether playback should be looped. |
| bool FMediaPlayerFacade::SetNativeVolume | ( | float | Volume | ) |
Changes the media's native volume.
| Rate | The volume to set. |
| bool FMediaPlayerFacade::SetRate | ( | float | Rate | ) |
Changes the media's playback rate.
| Rate | The playback rate to set. |
| bool FMediaPlayerFacade::SetTrackFormat | ( | EMediaTrackType | TrackType, |
| int32 | TrackIndex, | ||
| int32 | FormatIndex | ||
| ) |
Set the format on the specified track.
Selecting the format will not switch to the specified track. To switch tracks, use SelectTrack instead. If the track is already selected, the format change will be applied immediately.
| TrackType | The type of track to update. |
| TrackIndex | The index of the track to update. |
| FormatIndex | The index of the format to select (must be valid). |
| bool FMediaPlayerFacade::SetVideoTrackFrameRate | ( | int32 | TrackIndex, |
| int32 | FormatIndex, | ||
| float | FrameRate | ||
| ) |
Set the frame rate of the specified video track.
| TrackIndex | The index of the track, or INDEX_NONE for the selected one. |
| FormatIndex | Index of the track format, or INDEX_NONE for the selected one. |
| FrameRate | The frame rate to set (must be in range of format's supported frame rates). |
| bool FMediaPlayerFacade::SetViewField | ( | float | Horizontal, |
| float | Vertical, | ||
| bool | Absolute | ||
| ) |
Set the field of view.
| Horizontal | Horizontal field of view (in Euler degrees). |
| Vertical | Vertical field of view (in Euler degrees). |
| Whether | the field of view change should be absolute (true) or relative (false). |
| bool FMediaPlayerFacade::SetViewOrientation | ( | const FQuat & | Orientation, |
| bool | Absolute | ||
| ) |
Set the view's orientation.
| Orientation | Quaternion representing the orientation. |
| Whether | the orientation change should be absolute (true) or relative (false). |
| bool FMediaPlayerFacade::SupportsRate | ( | float | Rate, |
| bool | Unthinned | ||
| ) | const |
|
overridevirtual |
Called each tick to handle updates after the Engine ticked.
| DeltaTime | Time since this function was last called. |
| Timecode | The current media time code. |
重载 IMediaClockSink .
|
overridevirtual |
Called each tick to handle input before the Engine is ticked.
| DeltaTime | Time since this function was last called. |
| Timecode | The current media time code. |
重载 IMediaClockSink .
|
overridevirtual |
Called each tick to output the rendered frame.
| DeltaTime | Time since this function was last called. |
| Timecode | The current media time code. |
重载 IMediaClockSink .