VideoPlayer.AudioMultiStreamSelect method |
|
Remarks
Selects a different audio stream for playback. The change of the audio stream is not immediate and, depending upon the video format in use, the new audio stream could become audible after a certain amount of seconds.
The total number of available audio streams can be obtained using the VideoPlayer.AudioMultiStreamGetCount method.
For further details about the use of the embedded video player see the VideoPlayer object section.
For details about video clips rendering refer to the How to play video files through DirectShow tutorial.
Syntax
[Visual Basic] control.VideoPlayer.AudioMultiStreamSelect ( nPlayer as Integer, nStreamIndex as Long ) as enumErrorCodes |
[C++] short control.VideoPlayer.AudioMultiStreamSelect ( short nPlayer, long nStreamIndex ); |
Parameter |
Description |
|
|
nPlayer |
Number representing the zero-based index of the player that will use the video player. |
nStreamIndex |
Number representing the zero-based index of the audio stream to select. Use the value returned by the VideoPlayer.AudioMultiStreamGetCount method in order to know how many audio streams are available. |
Return value
Value |
Meaning |
|
|
Negative value |
An error occurred, check the LastError property value in order to get the error code |
enumErrorCodes.ERR_NOERROR (0) |
The method call was successful |