Copyright © 2001-2018 MultiMedia Soft

VideoPlayer.AudioMultiStreamSelect method

Previous pageReturn to chapter overviewNext page



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.





[Visual Basic]

control.VideoPlayer.AudioMultiStreamSelect (

nPlayer as Integer,

nStreamIndex as Long

) as enumErrorCodes



short control.VideoPlayer.AudioMultiStreamSelect (

short nPlayer,

long nStreamIndex









Number representing the zero-based index of the player that will use the video player.


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






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