#include <player/YiUWPVideoPlayer.h>

Public Member Functions | |
| CYIUWPVideoPlayer () | |
| virtual | ~CYIUWPVideoPlayer () |
| virtual CYIString | GetName_ () const override |
| virtual CYIString | GetVersion_ () const override |
| virtual Statistics | GetStatistics_ () const override |
| virtual bool | SupportsFormat_ (STREAMING_FORMAT eFormat, DRM_SCHEME eDRMScheme) const override |
| virtual std::unique_ptr< CYIVideoSurface > | CreateSurface_ () override |
| virtual void | Prepare_ (const CYIUrl &videoURI, STREAMING_FORMAT eFormatHint) override |
| virtual void | Play_ () override |
| virtual void | Pause_ () override |
| virtual void | Stop_ () override |
| virtual uint64_t | GetDurationMs_ () const override |
| virtual uint64_t | GetCurrentTimeMs_ () const override |
| virtual void | Seek_ (uint64_t uSeekPositionMS) override |
| virtual bool | IsMuted_ () const override |
| virtual void | Mute_ (bool bMute) override |
| virtual bool | SelectAudioTrack_ (uint32_t uID) override |
| virtual CYIAbstractVideoPlayer::AudioTrackInfo | GetActiveAudioTrack_ () const override |
| virtual std::vector< CYIAbstractVideoPlayer::AudioTrackInfo > | GetAudioTracks_ () const override |
| virtual void | DisableClosedCaptions_ () override |
| virtual bool | SelectClosedCaptionsTrack_ (uint32_t uID) override |
| virtual std::vector< ClosedCaptionsTrackInfo > | GetClosedCaptionsTracks_ () const override |
| virtual CYIAbstractVideoPlayer::ClosedCaptionsTrackInfo | GetActiveClosedCaptionsTrack_ () const override |
| virtual void | SetMaxBitrate_ (uint64_t uMaxBitrate) override |
| virtual void | SetUserAgent_ (const CYIString &userAgent) override |
Public Member Functions inherited from CYIAbstractVideoPlayer | |
| virtual | ~CYIAbstractVideoPlayer () |
| CYIString | GetName () const |
| CYIString | GetVersion () const |
| Statistics | GetStatistics () const |
| void | Init () |
| void | Prepare (const CYIUrl &videoURI, STREAMING_FORMAT eFormatHint, CYIAbstractVideoPlayer::PLAYBACK_STATE eInitialState=CYIAbstractVideoPlayer::PLAYBACK_PAUSED, std::unique_ptr< DRMConfiguration > pDRMConfiguration=nullptr) |
| void | Prepare (const std::shared_ptr< CYIAssetVideo > &videoAsset, STREAMING_FORMAT eFormatHint, CYIAbstractVideoPlayer::PLAYBACK_STATE eInitialState=CYIAbstractVideoPlayer::PLAYBACK_PAUSED, std::unique_ptr< DRMConfiguration > pDRMConfiguration=nullptr) |
| void | Play () |
| void | Pause () |
| void | Stop () |
| void | Seek (uint64_t uSeekPositionMs) |
| bool | SupportsFormat (STREAMING_FORMAT eStreamingFormat, DRM_SCHEME eDRMScheme=DRM_NONE) |
| uint64_t | GetDurationMs () const |
| uint64_t | GetCurrentTimeMs () const |
| CYIAbstractVideoPlayer::PlayerState | GetPlayerState () const |
| bool | AreClosedCaptionsTracksAvailable () const |
| bool | SelectClosedCaptionsTrack (uint32_t uID) |
| std::vector< ClosedCaptionsTrackInfo > | GetClosedCaptionsTracks () const |
| ClosedCaptionsTrackInfo | GetActiveClosedCaptionsTrack () const |
| CYIClosedCaptionsDispatcher * | GetClosedCaptionsDispatcher () const |
| CYIVideoSurface * | GetSurface () const |
| bool | AreAudioTracksAvailable () const |
| bool | SelectAudioTrack (uint32_t uID) |
| std::vector< AudioTrackInfo > | GetAudioTracks () const |
| AudioTrackInfo | GetActiveAudioTrack () const |
| bool | IsMuted () const |
| void | Mute (bool bMute) |
| void | SetMaxBitrate (uint64_t uMaxBitrate) |
| void | SetUserAgent (const CYIString &userAgent) |
| void | SetVideoMetadata (const CYIAbstractVideoPlayer::VideoMetadata &metadata) |
| const DRMConfiguration * | GetDRMConfiguration () const |
| DRMConfiguration * | GetDRMConfiguration () |
Public Member Functions inherited from CYISignalHandler | |
| CYISignalHandler () | |
| CYISignalHandler (const CYISignalHandler &rSignalHandler) | |
| virtual | ~CYISignalHandler () |
| CYISignalHandler & | operator= (const CYISignalHandler &rSignalHandler) |
| void | MoveToThread (CYIThread *pThread) |
| This function allows the user to override the default thread affinity to any CYIThread that may or may not be running. More... | |
| CYIThreadHandle | GetThreadAffinity () const |
| void | SetThreadAffinity (const CYIThreadHandle &rThreadAffinity) |
| virtual bool | IsConnected () const |
| virtual bool | IsConnected (const CYISignalBase &rSignal) const |
| void | Disconnect (CYISignalBase &rSignal) |
| void | DisconnectFromAllSignals () |
Public Member Functions inherited from CYIThread::Listener | |
| Listener () | |
| virtual | ~Listener () |
| virtual void | OnThreadStarted (CYIThread *) |
| virtual void | OnThreadTerminated (CYIThread *) |
| virtual void | OnThreadFinished (CYIThread *) |
Public Member Functions inherited from CYIScriptableObject | |
| CYIScriptableObject () | |
| CYIScriptableObject (const CYIScriptableObject &other) | |
| CYIScriptableObject & | operator= (const CYIScriptableObject &other) |
| virtual | ~CYIScriptableObject () |
| CYIBindingImplementation * | GetBindingImplementation () const |
| void | SetBindingImplementation (CYIBindingImplementation *pBindingImplementation) |
| virtual const CYIRuntimeTypeInfo * | GetRuntimeTypeInfoForScriptObject () const |
Friends | |
| class | CYIUWPVideoPlayerPriv |
| CYIUWPVideoPlayer::CYIUWPVideoPlayer | ( | ) |
|
virtual |
|
overridevirtual |
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to disable closed captions. This is called when captions are disabled by selecting a track with id ClosedCaptionsTrackInfo::OFF_TRACK_ID.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to return information about the active audio track.
This function is only called if tracks are available, so a valid AudioTrackInfo instance must be returned.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to return information about the active closed captions track.
This function is only called if tracks are available, so a valid ClosedCaptionsTrackInfo instance must be returned. If captions are disabled then a default constructed ClosedCaptionsTrackInfo must be returned.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to return a vector of available audio tracks for the currently loaded media.
The uIDs of the returned tracks must be compatible with CYIAbstractVideoPlayer::SelectAudioTrack_.
This function is called each 1000 ms to check for updates to the available audio tracks.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to return a vector of available closed captions tracks for the currently loaded media. The "off" track is added by CYIAbstractVideoPlayer and must not be returned in this list.
The uIDs of the returned tracks must be compatible with CYIAbstractVideoPlayer::SelectClosedCaptionsTrack_.
This function is called each 1000 ms to check for updates to the available audio tracks.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to report the current time of the video.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to report the duration of the video.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Returns the name of the player.
Reimplemented from CYIAbstractVideoPlayer.
|
overridevirtual |
Returns the latest statistics from the player.
Reimplemented from CYIAbstractVideoPlayer.
|
overridevirtual |
Returns the version of the player.
Reimplemented from CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function, and return true if and only if the player is muted.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to mute the player when bMute is true, and unmute when /a bMute is false.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to pause the video. When the underlying player notifies that playback has paused the player must be transitioned into the CYIAbstractVideoPlayer::PLAYBACK_PAUSED state as follows:
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to play the video. When the underyling player notifies that playback has began the player must be transitioned into the CYIAbstractVideoPlayer::PLAYBACK_PLAYING state as follows:
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to prepare the video.
When a video is preparing, the player must be transitioned into the CYIAbstractVideoPlayer::MEDIA_PREPARING state as follows:
This transition typically occurs when the underlying video player notifies that it has begun preparing the media. If the underlying player does not report that media is preparing making this transition at the start of Prepare_ is recommended.
Once the video has completed preparing the player must be transitioned into the CYIAbstractVideoPlayer::MEDIA_READY state as follows:
This transition typically occurs when the underlying video player notifies that it has completed preparing the media. If the underlying player does not report that the media is ready making this transition at the end of Prepare_ is recommended.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to seek the video to a specific uSeekPositionMS in the video media. When seeking backwards from playback complete, the player must remain paused.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to switch the video player's current audio track to the one referenced by uID.
CYIAbstractVideoPlayer::SelectAudioTrack will validate the id prior to this function being called.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to switch the video player's current closed captions track to the one referenced by uID. Selecting a track must initiate the rendering of the subtitles to screen.
CYIAbstractVideoPlayer::SelectClosedCaptionsTrack will validate the id prior to this function being called. This function will not be called when disabling closed captions, uID is guaranteed not to be ClosedCaptionsTrackInfo::OFF_TRACK_ID.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses may implement this function to set the maximum bitrate, in bits per second, which an adaptive media source will reach.
Reimplemented from CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses may implement this function to set the user agent.
Reimplemented from CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to stop the video and clean-up any resources related to the video media as the player will be transitioned into the CYIAbstractVideoPlayer::MEDIA_UNLOADED after this function executes.
Implements CYIAbstractVideoPlayer.
|
overridevirtual |
Subclasses must implement this function to indicate that they support a given format.
Implements CYIAbstractVideoPlayer.
|
friend |