Navigation
API > API/Runtime > API/Runtime/Media
Inheritance Hierarchy
- IMediaPlayer
- FMediaIOCorePlayerBase
References
| Module | Media |
| Header | /Engine/Source/Runtime/Media/Public/IMediaPlayer.h |
| Include | #include "IMediaPlayer.h" |
Syntax
class IMediaPlayer
Remarks
Interface for media players.
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Close () |
Close a previously opened media source. | |
| bool | Flush sinks when seek ends | ||
| bool | Flush sinks when seek begins | ||
| IMediaCache & | GetCache () |
Get the player's cache controls. | |
| IMediaControls & | GetControls () |
Get the player's playback controls. | |
| FString | GetInfo () |
Get debug information about the player and currently opened media. | |
| FVariant | GetMediaInfo
(
FName InfoName |
Get information about the media that is playing. | |
| TSharedPtr< TMap< FString, TArray< TUniquePtr< IMediaMetadataItem > > >, ESPMode::ThreadSafe > | Gets the current metadata of the media source. | ||
| FText | GetMediaName () |
Get the human readable name of the currently loaded media source. | |
| uint32 | Return IMediaPlayerLifecycleManagerDelegate::ResourceFlags bitmask to indicate resource types recreated on a open call | ||
| bool | |||
| FGuid | Get the GUID for this player plugin. | ||
| IMediaSamples & | GetSamples () |
Get the player's sample queue. | |
| FString | GetStats () |
Get playback statistics information. | |
| IMediaTracks & | GetTracks () |
Get the player's track collection. | |
| FString | GetUrl () |
Get the URL of the currently loaded media. | |
| IMediaView & | GetView () |
Get the player's view settings. | |
| bool | Open
(
const FString& Url, |
Open a media source from a URL with optional parameters. | |
| bool | Open
(
const TSharedRef< FArchive, ESPMode::ThreadSafe >& Archive, |
Open a media source from a file or memory archive with optional parameters. | |
| bool | Open
(
const FString& Url, |
Open a media source from a URL with optional asset and player parameters. | |
| void | Any extra processing that the player should do when FMediaPlayerFacade::ProcessVideoSamples is run should be put here. | ||
| bool | SetAsyncResourceReleaseNotification
(
IAsyncResourceReleaseNotificationRef AsyncDestructNotification |
Set async resource release notification for use with IMediaPlayerLifecycleManagerDelegate | |
| void | Set the player's globally unique identifier. | ||
| void | SetLastAudioRenderedSampleTime
(
FTimespan SampleTime |
Notify player of last sample time of audio used. | |
| bool | SetNativeVolume
(
float Volume |
Set the player's native volume if supported. | |
| void | TickAudio () |
Tick the player's audio related code. | |
| void | Tick the player in the Fetch phase. | ||
| void | Tick the player in the Input phase. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| IAsyncResourceReleaseNotification |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EFeatureFlag |
Typedefs
| Name | Description |
|---|---|
| IAsyncResourceReleaseNotificationRef |