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 class section.
For details about video clips rendering refer to the How to play video files through DirectShow tutorial.
Syntax
[Visual Basic] Public Function AudioMultiStreamSelect ( nPlayerIndex as Int16, nStreamIndex as Int16 ) as String |
[C#] public string AudioMultiStreamSelect ( Int16 nPlayerIndex, Int16 nStreamIndex ); |
[C++] public: string AudioMultiStreamSelect ( Int16 nPlayerIndex, Int16 nStreamIndex ); |
Parameter |
Description |
|
|
nPlayerIndex |
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 |