mw::mo::helper::PlayerStatus Enumerated Type

Syntax


enum PlayerStatus;

Values

Values Description
PLAYER_OPENING It is the state of the mw::mo::helper::Player when just created by calling mw::mo::helper::Player::Create method.
While in this state the mw::mo::helper::Player retrieves information on all streams embedded in the Moflex content and read all timeline stream datas.
It will go into PLAYER_STOPPED state when this process is done.
It will go into PLAYER_ERROR state if an error in encountered.
PLAYER_STOPPED mw::mo::helper::Player is idle and waiting for user action.
It will go into PLAYER_PREDECODING state after a successful call to mw::mo::helper::Player::StartPlayback method.
It will go into PLAYER_SEEKING state after a successful call to mw::mo::helper::Player::SetPositionByFileOffset method.
PLAYER_PREDECODING The mw::mo::helper::Player goes into this mode after a successful call to mw::mo::helper::Player::StartPlayback method.
While in this state the mw::mo::helper::Player is beginning to decode video and audio frames and enqueue them without launching the playback process.
Once a determined number of decoded video frames are enqueued (it is usualy 12 for 3D interleaved videos and 6 otherwise) the playback is started.
This way a good amount of audio data is already buffered and ready to be presented by the audio device, thus greatly limiting the risk of audio underflow problems during playback.
The mw::mo::helper::Player will go into PLAYER_PLAYING state when determined number of video frames will be decoded.
It will go into PLAYER_END state if the end of the Moflex content is reached while not having enqueued enough frames.
It will go into PLAYER_ERROR state if an error in encountered.
PLAYER_PLAYING The mw::mo::helper::Player goes into this mode after having enqueued the needed amount of frames while in the PLAYER_PREDECODING state.
While in this state the mw::mo::helper::Player tries to fill the audio/video queues by reading and decoding new audio/video frames.
The mw::mo::helper::Player will go into PLAYER_END state if the end of the Moflex content is reached and audio/video queues are empty (all audio/video frames are presented).
The mw::mo::helper::Player will go into PLAYER_STOPPING state if mw::mo::helper::Player::StopPlayback method is called.
It will go into PLAYER_PAUSED state if mw::mo::helper::Player::PausePlayback method is called.
It will go into PLAYER_ERROR state if an error in encountered.
PLAYER_STOPPING The mw::mo::helper::Player goes into this state when mw::mo::helper::Player::StopPlayback method is called.
While in this state it flushes all enqueued decoded audio and video frames.
The mw::mo::helper::Player will go into PLAYER_STOPPED state when this process is done.
It will go into PLAYER_ERROR state if an error in encountered.
PLAYER_SEEKING The mw::mo::helper::Player goes into this state when mw::mo::helper::Player::SetPositionByFileOffset method is called.
While in this state it flushes all enqueued decoded audio and video frames.
It will then read new frames from the Moflex content and ignore then until it finds a video frame that is a keyframe.
Once the video keyframe is found frame decoding begins. If the video is stereoscopic interleaved and if the next decoded video frame is not of the same left/right eye pair, the first decoded video frame is removed from the decoder queue without been displayed (this prevents left/right eye inversion problem at display).
The mw::mo::helper::Player will go into PLAYER_STOPPED state when this process is done.
It will go into PLAYER_END state if the end of the Moflex content is reached during the seek process.
It will go into PLAYER_ERROR state if an error in encountered.
PLAYER_PAUSED The mw::mo::helper::Player goes into this state when mw::mo::helper::Player::PausePlayback method is called.
The mw::mo::helper::Player will go into PLAYER_PREDECODING state after a successful call to mw::mo::helper::Player::ResumePlayback method.
It will go into PLAYER_ERROR state if an error in encountered.
PLAYER_END The mw::mo::helper::Player goes into this state when the end of the Moflex content is reached.
It will then immediately go into PLAYER_STOPPING state.
PLAYER_ERROR The mw::mo::helper::Player encountered an error.
Once in this state the user should release the player instance by calling the mw::mo::helper::Player::Release method.

Description

Enumerated type that describes the different states the Player class can be.

Revision History

2011/10/03
Initial version.