class mw::mo::helper::Player;
This class centralizes all needed mechanisms to perform the playback of a single Moflex content and hides all the complexity of doing that task.
It allows the developer to:
- start/stop playback.
- pause/resume playback.
- perform seeking into the Moflex content.
- retrieve various playback and Moflex content information.
It can currently perform the following tasks:
- play a Moflex content with a 2D video track on top or bottom screen, or in a texture.
- play a Moflex content with a 3D video track on top screen.
- play a Moflex content with a 2D/3D video track on top screen and another 2D video track on bottom screen.
- select and play an audio track from the list of audio tracks available in the Moflex content.
When creating a new instance of the class the developer gives into parameter:
- a mw::mo::moflex::Demuxer instance used for reading, seeking and obtaining information on the Moflex content.
- a mw::mo::helper::VideoPresentationBuffer instance used to draw the video frames on the screen.
- a mw::mo::helper::AudioPresentationBuffer instance used to play the decoded audio frames.
- a mw::mo::helper::CodecInstantiation instance used to instantiate all needed audio and video decoders.
| Player | Player Constructor. | |
|---|---|---|
| ~Player | Player Destructor. | |
| Create | Creates(allocates) and itializes all internal datas of the Player class. | |
| Release | Releases(deallocates) all internal datas of the Player class, if any. | |
| EnableDeblocking | Tells if we want to enable dynamic deblocking or not. | |
| Yield | Gives CPU time to Player Run thread. | |
| GetStatus | Retrieves current Player class status. | |
| StartPlayback | Starts playback. | |
| StopPlayback | Stops playback. | |
| PausePlayback | Pauses playback. | |
| ResumePlayback | Resumes playback. | |
| SetPositionByFileOffset | Seeks into the Moflex content to a position specified by the given raw file offset. | |
| SetPositionByTimeline | Seeks into the Moflex content to a position specified by the given timeline entry. | |
| VideoPresentationTimeElapsed | Gives the amount of time elapsed since a new video image should have been displayed, in microseconds. | |
| VideoImageRequestStart | Starts the request of a new set of YUV->RGB color converted video images if all needed YUV video images are decoded. | |
| VideoImageRequestEnd | Ends the request of the new set of YUV->RGB color converted video images if the batch of YUV->RGB color conversions are all finished. | |
| VideoImageRequestPending | Tells if a batch of YUV->RGB color conversions are in progress. | |
| VideoImageAvailable | Tells if the batch of YUV->RGB color conversions are all finished. | |
| WaitVideoImage | Waits that the batch of YUV->RGB color conversions are all finished. | |
| VideoImageSkip | Pops the current video image from the video queue without doing any YUV->RGB color conversions. | |
| GetNbVideoStream | Gets the number of video streams inside the Moflex content. | |
| GetCurrentVideoStream | Gets the video stream index that is associated to the top or bottom screen. | |
| SetCurrentVideoStream | Sets the video stream index that will be associated to the top or bottom screen. | |
| GetVideoStreamInfo | Gets information on a Moflex video stream. | |
| GetNbImageFrames | Gets the number of frames needed to obtain a full video image for a given the video stream info. | |
| GetNbAudioStream | Gets the number of audio streams inside the Moflex content. | |
| GetCurrentAudioStream | Gets the index of the audio stream that has been selected for decoding and playback. | |
| SetCurrentAudioStream | Sets the audio stream index that will be used for decoding and playback. | |
| GetAudioStreamInfo | Gets information on a Moflex audio stream. | |
| GetNbTimeline | Gets the number of timeline streams in the Moflex content. | |
| GetTimelineStreamInfo | Gets information on a Moflex timeline stream. | |
| GetTimelineStreamFromVideoStream | Gets the timeline stream index that indexes a given video stream. | |
| GetTimelineNbEntries | Gets number of entries of a Moflex timeline stream. | |
| GetTimelineTotalFrames | Gets the total number of video frames given by a Moflex timeline stream. | |
| GetTimelineDuration | Gets the duration in microseconds given by a Moflex timeline stream. | |
| GetTimelineEntryByIndex | Gets a timeline entry pointer given an entry index for a Moflex timeline stream. | |
| GetTimelineEntryByFrameNumber | Gets a timeline entry pointer given a video frame number for a Moflex timeline stream. | |
| GetTimelineEntryByTimeStamp | Gets a timeline entry pointer given a timestamp in microseconds for a Moflex timeline stream. | |
| GetVideoPresentation | Gets VideoPresentation class pointer that was given when calling Create method. | |
| GetAudioPresentation | Gets AudioPresentation class pointer that was given when calling Create method. | |
| PrintStatistics | Prints statistics on the Player class usage in the debug console. |
mw::mo::helper::Player