| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/MediaAssets/Public/MediaPlayer.h |
Include |
#include "MediaPlayer.h" |
class UMediaPlayer : public UObject
Implements a media player asset that can play movies and other media sources.
Name | Description | ||
---|---|---|---|
|
AffectedByPIEHandling |
Whether this player should stop when entering or exiting PIE. |
|
|
CacheAhead |
Duration of samples to cache ahead of the play head. |
|
|
CacheBehind |
Duration of samples to cache behind the play head (when not running as game). |
|
|
CacheBehindGame |
Duration of samples to cache behind the play head (when running as game). |
|
|
float |
HorizontalFieldOfView |
The initial horizontal field of view (in Euler degrees; default = 90). |
|
uint32: 1 |
Loop |
Whether the player should loop when media playback reaches the end. |
|
NativeAudioOut |
Output any audio via the operating system's sound mixer instead of a Sound Wave asset. |
|
|
OnEndReached |
A delegate that is invoked when playback has reached the end of the media. |
|
|
OnMediaClosed |
A delegate that is invoked when a media source has been closed. |
|
|
OnMediaOpened |
A delegate that is invoked when a media source has been opened. |
|
|
OnMediaOpenFailed |
A delegate that is invoked when a media source has failed to open. |
|
|
OnPlaybackResumed |
A delegate that is invoked when media playback has been resumed. |
|
|
OnPlaybackSuspended |
A delegate that is invoked when media playback has been suspended. |
|
|
OnSeekCompleted |
A delegate that is invoked when a seek operation completed successfully. |
|
|
OnTracksChanged |
A delegate that is invoked when the media track collection changed. |
|
|
UMediaPlaylist ... |
Playlist |
The play list to use, if any. |
|
PlaylistIndex |
The current index of the source in the play list being played. |
|
|
PlayOnOpen |
Automatically start playback after media opened successfully. |
|
|
uint32: 1 |
Shuffle |
Whether playback should shuffle media sources in the play list. |
|
TimeDelay |
Delay of the player's time. |
|
|
float |
VerticalFieldOfView |
The initial vertical field of view (in Euler degrees; default = 60). |
|
ViewRotation |
The initial view rotation. |
Name | Description | |
---|---|---|
|
UMediaPlayer ( |
Name | Description | ||
---|---|---|---|
|
CanPause() |
Check whether media playback can be paused right now. |
|
|
CanPlaySource ( |
Check whether the specified media source can be played by this player. |
|
|
CanPlayUrl ( |
Check whether the specified URL can be played by this player. |
|
|
Close() |
Close the currently open media, if any. |
|
|
GetAudioTrackChannels |
Get the number of channels in the specified audio track. |
|
|
GetAudioTrackSampleRate |
Get the sample rate of the specified audio track. |
|
|
GetAudioTrackType |
Get the type of the specified audio track format. |
|
|
GetDesiredPlayerName() |
Get the name of the current desired native player. |
|
|
GetDuration() |
Get the media's duration. |
|
|
const FGuid ... |
GetGuid() |
Get the Guid associated with this media player |
|
float |
GetHorizontalFieldOfView() |
Get the current horizontal field of view (only for 360 videos). |
|
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. |
|
|
TSharedRef< ... |
GetPlayerFacade() |
Get the media player facade that manages low-level media players |
|
GetPlayerName() |
Get the name of the current native media player. |
|
|
UMediaPlayli... |
GetPlaylist() |
Get the current play list. |
|
GetPlaylistIndex() |
Get the current play list index. |
|
|
UMediaPlayli... |
GetPlaylistRef() |
Get the current play list. |
|
float |
GetRate() |
Get the media's current playback rate. |
|
GetSelectedTrack ( |
Get the index of the currently selected track of the given type. |
|
|
GetSupportedRates ( |
Get the supported playback rates. |
|
|
GetTime() |
Get the media's current playback time. |
|
|
GetTimeDelay() |
Delay of the player's time. |
|
|
UMediaTimeSt... |
GetTimeStamp() |
Get the media's current playback timestamp. |
|
GetTrackDisplayName ( |
Get the human readable name of the specified track. |
|
|
GetTrackFormat ( |
Get the index of the active format of the specified track type. |
|
|
GetTrackLanguage ( |
Get the language tag of the specified track. |
|
|
const FStrin... |
GetUrl() |
Get the URL of the currently loaded media, if any. |
|
float |
GetVerticalFieldOfView() |
Get the current vertical field of view (only for 360 videos). |
|
float |
GetVideoTrackAspectRatio |
Get the aspect ratio of the specified video track. |
|
GetVideoTrackDimensions |
Get the current dimensions of the specified video track. |
|
|
float |
GetVideoTrackFrameRate |
Get the frame rate of the specified video track. |
|
GetVideoTrackFrameRates |
Get the supported range of frame rates of the specified video track. |
|
|
GetVideoTrackType |
Get the type of the specified video track format. |
|
|
GetViewRotation() |
Get the current view rotation (only for 360 videos). |
|
|
HasError() |
Check whether the player is in an error state. |
|
|
IsBuffering() |
Check whether playback is buffering data. |
|
|
IsClosed() |
Whether media is currently closed. |
|
|
IsConnecting() |
Check whether the player is currently connecting to a media source. |
|
|
IsLooping() |
Check whether playback is looping. |
|
|
IsPaused() |
Check whether playback is currently paused. |
|
|
IsPlaying() |
Check whether playback has started. |
|
|
IsPreparing() |
Check whether the media is currently opening or buffering. |
|
|
IsReady() |
Check whether media is ready for playback. |
|
|
Next() |
Open the next item in the current play list. |
|
|
UMediaPlayer... |
OnMediaEvent() |
|
|
OpenFile ( |
Opens the specified media file path. |
|
|
OpenPlaylist ( |
Open the first media source in the specified play list. |
|
|
OpenPlaylistIndex ( |
Open a particular media source in the specified play list. |
|
|
OpenSource ( |
Open the specified media source. |
|
|
OpenSourceLatent ( |
Open the specified media source with options using a latent action. |
|
|
OpenSourceWithOptions ( |
Open the specified media source with supplied options applied. |
|
|
OpenUrl ( |
Opens the specified media URL. |
|
|
Pause() |
Pauses media playback. This is the same as setting the playback rate to 0.0. |
|
|
PausePIE() |
Called when PIE has been paused. |
|
|
Play() |
Starts media playback. This is the same as setting the playback rate to 1.0. |
|
|
PlayAndSeek() |
Starts playback from the media opened event, but can be used elsewhere. |
|
|
Previous() |
Open the previous item in the current play list. |
|
|
RegisterWithMediaModule() |
Register player with media module to be ticked |
|
|
Reopen() |
Reopens the currently opened media or play list. |
|
|
ResumePIE() |
Called when PIE has been resumed. |
|
|
Rewind() |
Rewinds the media to the beginning. This is the same as seeking to zero time. |
|
|
Seek ( |
Seeks to the specified playback time. |
|
|
SelectTrack ( |
Select the active track of the given type. |
|
|
SetBlockOnTime ( |
Set the time on which to block. |
|
|
SetBlockOnTimeRange |
Set the time range on which to block. |
|
|
SetDesiredPlayerName ( |
Set the name of the desired native player. |
|
|
SetLooping ( |
Enables or disables playback looping. |
|
|
SetMediaOptions ( |
Sets the media options used by the player. |
|
|
SetNativeVolume ( |
Set the volume on the native player if not mixing with Sound Wave asset. |
|
|
SetRate ( |
Changes the media's playback rate. |
|
|
SetTimeDelay ( |
Delay of the player's time. |
|
|
SetTrackFormat ( |
Set the format on the specified track. |
|
|
SetVideoTrackFrameRate |
Set the frame rate of the specified video track. |
|
|
SetViewField ( |
Set the field of view (only for 360 videos). |
|
|
SetViewRotation |
Set the view's rotation (only for 360 videos). |
|
|
SupportsRate ( |
Check whether the specified playback rate is supported. |
|
|
SupportsScrubbing() |
Check whether the currently loaded media supports scrubbing. |
|
|
SupportsSeeking() |
Check whether the currently loaded media can jump to a certain position. |
Name | Description | ||
---|---|---|---|
|
BeginDestroy() |
Called before destroying the object. |
|
|
GetDesc() |
Return a one line description of an object for viewing in the thumbnail view of the generic browser |
|
|
PostDuplicate ( |
Called after duplication & serialization and before PostLoad. |
|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PostInitProperties() |
Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
Name |
Description |
|
---|---|---|
|
FOnMediaEvent |
Get an event delegate that is invoked when a media event occurred. |