mw::mo::helper::Player::SetCurrentVideoStream Function

Syntax


bool SetCurrentVideoStream (PlayerScreen screen, int videoStream);

Arguments

Name Description
in screen The screen (top or bottom screen) that we want to associate to the selected video stream.
in videoStream The index of the video stream that we want to associate to the top or the bottom screen.

Returns

true if success.
false if videoStream index is out of range or if corresponding video decoder instance could not be created.

Description

Sets the video stream index that will be associated to the top or bottom screen.
Give -1 as value of videoStream parameter (this is the default) if you want none of them to be associated.
Only one video decoder instance is created for each associated screen (top or bottom screen), that is a maximum a two instances of video decoders that can be instantiated at once.
If for a given screen the associated video stream index is changed the following steps are done:
- the current video decoder instance is released, if any.
- a new video decoder instance is created, corresponding to the newly selected video stream.

Revision History

2011/10/03
Initial version.