| IMediaClockSink | ||
| IMediaTickable | ||
| IMediaEventSink | ||
| TSharedFromThis
|
Module |
|
Header |
/Engine/Source/Runtime/MediaUtils/Public/MediaPlayerFacade.h |
Include |
#include "MediaPlayerFacade.h" |
class FMediaPlayerFacade :
public IMediaClockSink,
public IMediaTickable,
protected IMediaEventSink,
public TSharedFromThis< FMediaPlayerFacade, ESPMode::ThreadSafe >
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'.
Name | Description | ||
---|---|---|---|
|
ActivePlayerOptions |
Active media player options. |
|
|
DesiredPlayerName |
Name of the desired native player, if any. |
|
|
TimeDelay |
Extra time to reduce from current player's time. |
Name | Description | |
---|---|---|
|
FMediaPlayerFacade() |
Default constructor. |
Name | Description | |
---|---|---|
|
~FMediaPlayerFacade() |
Virtual destructor. |
Name | Description | ||
---|---|---|---|
|
AddAudioSampleSink ( |
Add the given audio sample sink to this player. |
|
|
AddCaptionSampleSink ( |
Add the given audio sample sink to this player. |
|
|
AddMetadataSampleSink ( |
Add the given audio sample sink to this player. |
|
|
AddSubtitleSampleSink ( |
Add the given audio sample sink to this player. |
|
|
AddVideoSampleSink ( |
Add the given audio sample sink to this player. |
|
|
BlockOnFetch() |
Whether sample fetching should block. |
|
|
CanPause() |
Whether playback can be paused. |
|
|
CanPlayUrl ( |
Whether the specified URL can be played by this player. |
|
|
CanResume() |
Whether playback can be resumed. |
|
|
CanScrub() |
Whether playback can be scrubbed. |
|
|
CanSeek() |
Whether playback can jump to a position. |
|
|
Close() |
Close the currently open media, if any. |
|
|
FlushSinks() |
Flush all media sample sinks. |
|
|
GetAudioTrackChannels |
Get the number of channels in the specified audio track. |
|
|
GetAudioTrackFormat ( |
Get details about the specified audio track format. |
|
|
GetAudioTrackSampleRate |
Get the sample rate of the specified audio track. |
|
|
GetAudioTrackType |
Get the type of the specified audio track format. |
|
|
GetDuration() |
Get the media's duration. |
|
|
const FGuid ... |
GetGuid() |
Get the player's globally unique identifier. |
|
GetInfo() |
Get debug information about the player and currently opened media. |
|
|
GetLastAudioRenderedSampleTime() |
Get time of last audio sample played |
|
|
GetLastAudioSampleProcessedTime() |
Get time of last audio sample decoded |
|
|
GetLastVideoSampleProcessedTime() |
Get time of last video sample decoded |
|
|
GetMediaName() |
Get the human readable name of the currently loaded media source. |
|
|
GetNumTrackFormats ( |
Get the number of formats of the specified track. |
|
|
GetNumTracks ( |
Get the number of tracks of the given type. |
|
|
TSharedPtr< ... |
GetPlayer() |
Get the low-level player associated with this object. |
|
TSharedPtr< ... |
GetPlayerForUrl ( |
Get a player that can play the specified media URL. |
|
GetPlayerName() |
Get the name of the current native media player. |
|
|
float |
GetRate() |
Get the media's current playback rate. |
|
GetSelectedTrack ( |
Get the index of the currently selected track of the given type. |
|
|
GetStats() |
Get playback statistics information. |
|
|
TRangeSet< f... |
GetSupportedRates ( |
Get the supported playback rates. |
|
GetTime() |
Get the media's current playback time. |
|
|
GetTrackDisplayName ( |
Get the human readable name of the specified track. |
|
|
GetTrackFormat ( |
Get the index of the active format of the specified track. |
|
|
GetTrackLanguage ( |
Get the language tag of the specified track. |
|
|
const FStrin... |
GetUrl() |
Get the URL of the currently loaded media, if any. |
|
float |
GetVideoTrackAspectRatio |
Get the aspect ratio of the specified video track. |
|
GetVideoTrackDimensions |
Get the width and height of the specified video track. |
|
|
GetVideoTrackFormat ( |
Get details about the specified audio track format. |
|
|
float |
GetVideoTrackFrameRate |
Get frame rate of the specified video track. |
|
TRange< floa... |
GetVideoTrackFrameRates |
Get the supported range of frame rates of the specified video track. |
|
GetVideoTrackType |
Get the type of the specified video track format. |
|
|
GetViewField ( |
Get the field of view. |
|
|
GetViewOrientation ( |
Get the view's orientation. |
|
|
HasError() |
Check whether the player is in an error state. |
|
|
IsBuffering() |
Whether the player is currently buffering data. |
|
|
IsClosed() |
Whether media is currently closed. |
|
|
IsConnecting() |
Whether the player is currently connecting to a media source. |
|
|
IsLooping() |
Whether playback is looping. |
|
|
IsPaused() |
Whether playback is currently paused. |
|
|
IsPlaying() |
Whether playback is in progress. |
|
|
IsPreparing() |
Whether the media is currently opening or buffering. |
|
|
IsReady() |
Whether media is ready for playback. |
|
|
FMediaPlayer... |
OnMediaEvent() |
|
|
Open ( |
Open a media source from a URL with optional parameters. |
|
|
ProcessAudioSamples ( |
Fetch audio samples from the player and forward them to the registered sinks. |
|
|
ProcessCaptionSamples ( |
Fetch audio samples from the player and forward them to the registered sinks. |
|
|
ProcessEvent ( |
Process the given media event. |
|
|
ProcessMetadataSamples ( |
Fetch metadata samples from the player and forward them to the registered sinks. |
|
|
ProcessSubtitleSamples ( |
Fetch subtitle samples from the player and forward them to the registered sinks. |
|
|
ProcessVideoSamples ( |
Fetch video samples from the player and forward them to the registered sinks. |
|
|
QueryCacheState ( |
Query the time ranges of cached media samples for the specified caching state. |
|
|
Seek ( |
Seeks to the specified playback time. |
|
|
SelectDefaultTracks() |
Select the default media tracks. |
|
|
SelectTrack ( |
Select the active track of the given type. |
|
|
SetBlockOnTime ( |
Set the time on which to block. |
|
|
SetCacheWindow |
Set sample caching options. |
|
|
SetGuid ( |
Set the player's globally unique identifier. |
|
|
SetLastAudioRenderedSampleTime ( |
Record last audio sample played to track audio sync (for automated tests) |
|
|
SetLooping ( |
Enables or disables playback looping. |
|
|
SetMediaOptions ( |
Changes media ooptions on the player. |
|
|
SetNativeVolume ( |
Changes the media's native volume. |
|
|
SetRate ( |
Changes the media's playback rate. |
|
|
SetTrackFormat ( |
Set the format on the specified track. |
|
|
SetVideoTrackFrameRate |
Set the frame rate of the specified video track. |
|
|
SetViewField ( |
Set the field of view. |
|
|
SetViewOrientation |
Set the view's orientation. |
|
|
SupportsRate ( |
Whether the specified playback rate is supported. |
Name | Description | ||
---|---|---|---|
|
TickFetch |
Called each tick to handle updates after the Engine ticked. |
|
|
TickInput |
Called each tick to handle input before the Engine is ticked. |
|
|
TickOutput |
Called each tick to output the rendered frame. |
Name | Description | ||
---|---|---|---|
|
TickTickable() |
Tick the object. |
Name | Description | ||
---|---|---|---|
|
ReceiveMediaEvent ( |
Receive the given media event. |
Name |
Description |
|
---|---|---|
|
FOnMediaEvent |
Get an event delegate that is invoked when a media event occurred. |