mw::mo::helper::Player::StartPlayback Function

Syntax


bool StartPlayback (void);

Arguments

None.

Returns

true if success.
false in case of failure.

Description

Starts playback, can internally call Yield method to give CPU time to the Player Run thread.
The Player goes into PLAYER_PREDECODING internal state to enqueue audio and video frames, then go into PLAYER_PLAYING state if no error happened during the process.
The call fails if the Player class is not in PLAYER_STOPPED state.
It can also fail if the end of the Moflex content is reached before entering into PLAYER_PLAYING state, in this case the Player stays into PLAYER_STOPPED state.

Revision History

2012/01/10
Added description on PLAYER_PREDECODING internal state.
2011/10/03
Initial version.