| IMediaPlayer | ||
| IMediaCache | ||
| IMediaControls | ||
| IMediaTracks | ||
| IMediaView | ||
| ITimedDataInput
|
Module |
|
Header |
/Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Public/MediaIOCorePlayerBase.h |
Include |
#include "MediaIOCorePlayerBase.h" |
class FMediaIOCorePlayerBase :
public IMediaPlayer,
protected IMediaCache,
protected IMediaControls,
protected IMediaTracks,
protected IMediaView,
public ITimedDataInput
Implements a base player for hardware IO cards.
The processing of metadata and video frames is delayed until the fetch stage (TickFetch) in order to increase the window of opportunity for receiving frames for the current render frame time code.
Depending on whether the media source enables time code synchronization, the player's current play time (CurrentTime) is derived either from the time codes embedded in frames or from the Engine's global time code.
Name | Description | ||
---|---|---|---|
|
AudioTrackFormat |
Format of the audio. |
|
|
BaseSettings |
Base set of settings to start from when setuping channels |
|
|
bUseTimeSynchronization |
Whether to use the Synchronization Time module as time source. |
|
|
bWarnedIncompatibleFrameRate |
Warn when the video frame rate is not the same as the engine's frame rate. |
|
|
Channels |
Timed Data Input handler |
|
|
CriticalSection |
Critical section for synchronizing access to receiver and sinks. |
|
|
CurrentState |
Current state of the media player. |
|
|
CurrentTime |
Current playback time. |
|
|
EventSink |
The media event handler. |
|
|
FrameDelay |
When using Time Synchronization (TC synchronization), how many frame back of a delay would you like. |
|
|
OpenUrl |
Url used to open the media player. |
|
|
PreviousFrameTimespan |
Previous frame Timespan |
|
|
Samples |
The media sample cache. |
|
|
double |
TimeDelay |
When not using Time Synchronization (use computer time), how many sec back of a delay would you like. |
|
VideoFrameRate |
Video frame rate in the last received sample. |
|
|
VideoTrackFormat |
Format of the video. |
Name | Description | |
---|---|---|
|
FMediaIOCorePlayerBase ( |
Create and initialize a new instance. |
Name | Description | |
---|---|---|
|
~FMediaIOCorePlayerBase() |
Virtual destructor. |
Name | Description | ||
---|---|---|---|
|
double |
GetApplicationSeconds() |
Get the application time with a delta to represent the actual system time. |
|
double |
GetPlatformSeconds() |
Get the platform time with a delta to represent the actual system time. |
|
const FMedia... |
GetSamples() |
|
|
IsHardwareReady() |
Is the IO hardware/device ready to be used. |
|
|
IsTimecodeLogEnabled() |
Log the timecode when a frame is received. |
|
|
ReadMediaOptions ( |
Return true if the options combination are valid. |
|
|
SetupSampleChannels() |
Setup settings for the different kind of supported data channels. |
|
|
TickTimeManagement() |
Name | Description | ||
---|---|---|---|
|
Close() |
Close a previously opened media source. |
|
|
IMediaCache ... |
GetCache() |
Get the player's cache controls. |
|
IMediaContro... |
GetControls() |
Get the player's playback controls. |
|
GetInfo() |
Get debug information about the player and currently opened media. |
|
|
IMediaSample... |
GetSamples() |
Get the player's sample queue. |
|
GetStats() |
Get playback statistics information. |
|
|
IMediaTracks... |
GetTracks() |
Get the player's track collection. |
|
GetUrl() |
Get the URL of the currently loaded media. |
|
|
GetView() |
Get the player's view settings. |
|
|
Open ( |
Open a media source from a URL with optional parameters. |
|
|
Open ( |
Open a media source from a file or memory archive with optional parameters. |
|
|
TickFetch |
Tick the player in the Fetch phase. |
Name | Description | ||
---|---|---|---|
|
GetSampleCount ( |
Query the number of samples for the specified caching state. |
|
|
QueryCacheState ( |
Query the time ranges of cached media samples for the specified caching state. |
Name | Description | ||
---|---|---|---|
|
CanControl ( |
Whether the specified control is currently available. |
|
|
GetDuration() |
Get the media's duration. |
|
|
float |
GetRate() |
Get the nominal playback rate, i.e. 1.0 for real time. |
|
GetState() |
Get the state of the media. |
|
|
GetStatus() |
Get media player status flags. |
|
|
TRangeSet< f... |
GetSupportedRates ( |
Get the supported playback rates. |
|
GetTime() |
Get the player's current playback time. |
|
|
IsLooping() |
Check whether playback is currently looping. |
|
|
Seek ( |
Change the media's playback time. |
|
|
SetLooping ( |
Set whether playback should be looping. |
|
|
SetRate ( |
Set the current playback rate. |
Name | Description | ||
---|---|---|---|
|
GetAudioTrackFormat ( |
Get details about the specified audio track format. |
|
|
GetNumTrackFormats ( |
Get the number of formats of the specified track. |
|
|
GetNumTracks ( |
Get the number of media tracks of the given type. |
|
|
GetSelectedTrack ( |
Get the index of the currently selected track of the given type. |
|
|
GetTrackDisplayName ( |
Get the human readable name of the specified track. |
|
|
GetTrackFormat ( |
Get the index of the currently selected format of the given track type. |
|
|
GetTrackLanguage ( |
Get the language tag of the specified track. |
|
|
GetTrackName ( |
Get the internal name of the specified track. |
|
|
GetVideoTrackFormat ( |
Get details about the specified video track format. |
|
|
SelectTrack ( |
Select the active track of the given type. |
|
|
SetTrackFormat ( |
Select the active format on the specified track. |
Name | Description | ||
---|---|---|---|
|
AddChannel ( |
Add a channel belonging to this input |
|
|
GetChannels() |
Get a list of the channel this input has. |
|
|
GetDisplayName() |
Get the name used when displayed. |
|
|
double |
GetEvaluationOffsetInSeconds() |
Get the offset in seconds used at evaluation. |
|
ETimedDataIn... |
GetEvaluationType() |
Get how the input is evaluated. |
|
GetFrameRate() |
Get the frame rate at which the samples is produce. |
|
|
IsDataBufferSizeControlledByInput() |
Does channel from this input support a different buffer size than it's input. |
|
|
RemoveChannel ( |
Remove channel from the input |
|
|
SetEvaluationOffsetInSeconds ( |
Set the offset in seconds used at evaluation. |
|
|
SetEvaluationType ( |
Set how the input is evaluated. |