|
| MEDIAUTILS_API | FMediaPlayerFacade (TWeakObjectPtr< UMediaPlayer > InMediaPlayer) |
| |
| virtual MEDIAUTILS_API | ~FMediaPlayerFacade () |
| |
| MEDIAUTILS_API void | AddAudioSampleSink (const TSharedRef< FMediaAudioSampleSink, ESPMode::ThreadSafe > &SampleSink) |
| |
| MEDIAUTILS_API void | AddCaptionSampleSink (const TSharedRef< FMediaOverlaySampleSink, ESPMode::ThreadSafe > &SampleSink) |
| |
| MEDIAUTILS_API void | AddMetadataSampleSink (const TSharedRef< FMediaBinarySampleSink, ESPMode::ThreadSafe > &SampleSink) |
| |
| MEDIAUTILS_API void | AddSubtitleSampleSink (const TSharedRef< FMediaOverlaySampleSink, ESPMode::ThreadSafe > &SampleSink) |
| |
| MEDIAUTILS_API void | AddVideoSampleSink (const TSharedRef< FMediaTextureSampleSink, ESPMode::ThreadSafe > &SampleSink) |
| |
| MEDIAUTILS_API bool | CanPause () const |
| |
| MEDIAUTILS_API bool | CanPlayUrl (const FString &Url, const IMediaOptions *Options) |
| |
| MEDIAUTILS_API bool | CanResume () const |
| |
| MEDIAUTILS_API bool | CanScrub () const |
| |
| MEDIAUTILS_API bool | CanSeek () const |
| |
| MEDIAUTILS_API bool | SupportsPlaybackTimeRange () const |
| |
| MEDIAUTILS_API void | Close () |
| |
| MEDIAUTILS_API uint32 | GetAudioTrackChannels (int32 TrackIndex, int32 FormatIndex) const |
| |
| MEDIAUTILS_API uint32 | GetAudioTrackSampleRate (int32 TrackIndex, int32 FormatIndex) const |
| |
| MEDIAUTILS_API FString | GetAudioTrackType (int32 TrackIndex, int32 FormatIndex) const |
| |
| MEDIAUTILS_API FTimespan | GetDuration () const |
| |
| MEDIAUTILS_API const FGuid & | GetGuid () |
| |
| MEDIAUTILS_API FString | GetInfo () const |
| |
| MEDIAUTILS_API FVariant | GetMediaInfo (FName InfoName) const |
| |
| MEDIAUTILS_API FText | GetMediaName () const |
| |
| MEDIAUTILS_API TSharedPtr< TMap< FString, TArray< TUniquePtr< IMediaMetadataItem > > >, ESPMode::ThreadSafe > | GetMediaMetadata () const |
| |
| MEDIAUTILS_API int32 | GetNumTracks (EMediaTrackType TrackType) const |
| |
| MEDIAUTILS_API int32 | GetNumTrackFormats (EMediaTrackType TrackType, int32 TrackIndex) const |
| |
| TSharedPtr< IMediaPlayer, ESPMode::ThreadSafe > | GetPlayer () const |
| |
| MEDIAUTILS_API FName | GetPlayerName () const |
| |
| MEDIAUTILS_API float | GetRate () const |
| |
| MEDIAUTILS_API int32 | GetSelectedTrack (EMediaTrackType TrackType) const |
| |
| MEDIAUTILS_API FString | GetStats () const |
| |
| MEDIAUTILS_API TRangeSet< float > | GetSupportedRates (bool Unthinned=true) const |
| |
| MEDIAUTILS_API TRange< FTimespan > | GetPlaybackTimeRange (EMediaTimeRangeType InRangeToGet) const |
| |
| MEDIAUTILS_API FTimespan | GetTime () const |
| |
| MEDIAUTILS_API FMediaTimeStamp | GetTimeStamp () const |
| |
| MEDIAUTILS_API FMediaTimeStamp | GetDisplayTimeStamp () const |
| |
| MEDIAUTILS_API TOptional< FTimecode > | GetVideoTimecode () const |
| |
| MEDIAUTILS_API TRange< FMediaTimeStamp > | GetLastProcessedVideoSampleTimeRange () const |
| |
| MEDIAUTILS_API FText | GetTrackDisplayName (EMediaTrackType TrackType, int32 TrackIndex) const |
| |
| MEDIAUTILS_API int32 | GetTrackFormat (EMediaTrackType TrackType, int32 TrackIndex) const |
| |
| MEDIAUTILS_API FString | GetTrackLanguage (EMediaTrackType TrackType, int32 TrackIndex) const |
| |
| const FString & | GetUrl () const |
| |
| MEDIAUTILS_API float | GetVideoTrackAspectRatio (int32 TrackIndex, int32 FormatIndex) const |
| |
| MEDIAUTILS_API FIntPoint | GetVideoTrackDimensions (int32 TrackIndex, int32 FormatIndex) const |
| |
| MEDIAUTILS_API float | GetVideoTrackFrameRate (int32 TrackIndex, int32 FormatIndex) const |
| |
| MEDIAUTILS_API TRange< float > | GetVideoTrackFrameRates (int32 TrackIndex, int32 FormatIndex) const |
| |
| MEDIAUTILS_API FString | GetVideoTrackType (int32 TrackIndex, int32 FormatIndex) const |
| |
| MEDIAUTILS_API bool | GetViewField (float &OutHorizontal, float &OutVertical) const |
| |
| MEDIAUTILS_API bool | GetViewOrientation (FQuat &OutOrientation) const |
| |
| MEDIAUTILS_API bool | HasError () const |
| |
| MEDIAUTILS_API bool | IsBuffering () const |
| |
| MEDIAUTILS_API bool | IsConnecting () const |
| |
| MEDIAUTILS_API bool | IsLooping () const |
| |
| MEDIAUTILS_API bool | IsPaused () const |
| |
| MEDIAUTILS_API bool | IsPlaying () const |
| |
| MEDIAUTILS_API bool | IsPreparing () const |
| |
| MEDIAUTILS_API bool | IsClosed () const |
| |
| MEDIAUTILS_API bool | IsReady () const |
| |
| MEDIAUTILS_API bool | Open (const FString &Url, const IMediaOptions *Options, const FMediaPlayerOptions *PlayerOptions=nullptr) |
| |
| MEDIAUTILS_API void | QueryCacheState (EMediaTrackType TrackType, EMediaCacheState State, TRangeSet< FTimespan > &OutTimeRanges) const |
| |
| MEDIAUTILS_API bool | Seek (const FTimespan &Time) |
| |
| MEDIAUTILS_API bool | IsSeeking () const |
| |
| MEDIAUTILS_API FMediaTimeStamp | GetSeekTarget () const |
| |
| MEDIAUTILS_API void | SetNextSeek (const FTimespan &InTime) |
| |
| MEDIAUTILS_API bool | SelectTrack (EMediaTrackType TrackType, int32 TrackIndex) |
| |
| MEDIAUTILS_API void | SetBlockOnTime (const FTimespan &Time) |
| |
| MEDIAUTILS_API void | SetBlockOnTimeRange (const TRange< FTimespan > &TimeRange) |
| |
| MEDIAUTILS_API void | SetCacheWindow (FTimespan Ahead, FTimespan Behind) |
| |
| MEDIAUTILS_API void | SetGuid (FGuid &Guid) |
| |
| MEDIAUTILS_API bool | SetLooping (bool Looping) |
| |
| MEDIAUTILS_API void | SetMediaOptions (const IMediaOptions *Options) |
| |
| MEDIAUTILS_API bool | SetRate (float Rate) |
| |
| MEDIAUTILS_API bool | SetPlaybackTimeRange (const TRange< FTimespan > &InTimeRange) |
| |
| MEDIAUTILS_API bool | SetNativeVolume (float Volume) |
| |
| MEDIAUTILS_API bool | SetTrackFormat (EMediaTrackType TrackType, int32 TrackIndex, int32 FormatIndex) |
| |
| MEDIAUTILS_API bool | SetVideoTrackFrameRate (int32 TrackIndex, int32 FormatIndex, float FrameRate) |
| |
| MEDIAUTILS_API bool | SetViewField (float Horizontal, float Vertical, bool Absolute) |
| |
| MEDIAUTILS_API bool | SetViewOrientation (const FQuat &Orientation, bool Absolute) |
| |
| MEDIAUTILS_API bool | SupportsRate (float Rate, bool Unthinned) const |
| |
| MEDIAUTILS_API void | SetLastAudioRenderedSampleTime (FTimespan SampleTime) |
| |
| MEDIAUTILS_API FTimespan | GetLastAudioRenderedSampleTime () const |
| |
| MEDIAUTILS_API void | SetAreEventsSafeForAnyThread (bool bInAreEventsSafeForAnyThread) |
| |
| | DECLARE_EVENT_OneParam (FMediaPlayerFacade, FOnMediaEvent, EMediaEvent) FOnMediaEvent &OnMediaEvent() |
| |
| virtual MEDIAUTILS_API void | TickFetch (FTimespan DeltaTime, FTimespan Timecode) override |
| |
| virtual MEDIAUTILS_API void | TickInput (FTimespan DeltaTime, FTimespan Timecode) override |
| |
| virtual MEDIAUTILS_API void | TickOutput (FTimespan DeltaTime, FTimespan Timecode) override |
| |
| virtual MEDIAUTILS_API void | TickTickable () override |
| |
| virtual void | TickRender (FTimespan DeltaTime, FTimespan Timecode) |
| |
| virtual | ~IMediaClockSink () |
| |
| virtual | ~IMediaTickable () |
| |
| TSharedRef< FMediaPlayerFacade, Mode > | AsShared () |
| |
| TSharedRef< FMediaPlayerFacade const, Mode > | AsShared () const |
| |
| TSharedRef< SubobjectType, Mode > | AsSharedSubobject (SubobjectType *SubobjectPtr) const |
| |
| TWeakPtr< FMediaPlayerFacade, Mode > | AsWeak () |
| |
| TWeakPtr< FMediaPlayerFacade const, Mode > | AsWeak () const |
| |
| TWeakPtr< SubobjectType, Mode > | AsWeakSubobject (SubobjectType *SubobjectPtr) const |
| |
| void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const |
| |
| void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const |
| |
| UE_FORCEINLINE_HINT bool | DoesSharedInstanceExist () const |
| |
|
| MEDIAUTILS_API bool | BlockOnFetch () const |
| |
| MEDIAUTILS_API void | Flush (bool bExcludePlayer=false, bool bOnSeek=false) |
| |
| MEDIAUTILS_API FMediaTimeStamp | GetTimeStampInternal (bool bForDisplay) const |
| |
| MEDIAUTILS_API bool | GetAudioTrackFormat (int32 TrackIndex, int32 FormatIndex, FMediaAudioTrackFormat &OutFormat) const |
| |
| MEDIAUTILS_API IMediaPlayerFactory * | GetPlayerFactoryForUrl (const FString &Url, const IMediaOptions *Options) const |
| |
| MEDIAUTILS_API bool | GetVideoTrackFormat (int32 TrackIndex, int32 FormatIndex, FMediaVideoTrackFormat &OutFormat) const |
| |
| MEDIAUTILS_API void | ProcessEvent (EMediaEvent Event, bool bIsBroadcastAllowed) |
| |
| MEDIAUTILS_API bool | HaveAudioPlayback () const |
| |
| MEDIAUTILS_API bool | HaveVideoPlayback () const |
| |
| MEDIAUTILS_API float | GetUnpausedRate () const |
| |
| MEDIAUTILS_API void | ReceiveMediaEvent (EMediaEvent Event) override |
| |
| virtual | ~IMediaEventSink () |
| |
| | TSharedFromThis () |
| |
| | TSharedFromThis (TSharedFromThis const &) |
| |
| UE_FORCEINLINE_HINT TSharedFromThis & | operator= (TSharedFromThis const &) |
| |
| | ~TSharedFromThis () |
| |
| TSharedRef< FMediaPlayerFacade, Mode > | AsShared () |
| |
| TSharedRef< FMediaPlayerFacade const, Mode > | AsShared () const |
| |
| TSharedRef< SubobjectType, Mode > | AsSharedSubobject (SubobjectType *SubobjectPtr) const |
| |
| TWeakPtr< FMediaPlayerFacade, Mode > | AsWeak () |
| |
| TWeakPtr< FMediaPlayerFacade const, Mode > | AsWeak () const |
| |
| TWeakPtr< SubobjectType, Mode > | AsWeakSubobject (SubobjectType *SubobjectPtr) const |
| |
| void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const |
| |
| void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const |
| |
| UE_FORCEINLINE_HINT bool | DoesSharedInstanceExist () const |
| |
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'.