Movie Player ActiveX Control

AudioTrackSelectStream

 

Select specific index of a audio track for DIVX AVI, WMV, WebM, MP4, MOV, M4V, MPEG2, MPEG1, VOB, M2TS, MKV, DIVX video files.

Public Function AudioTrackSelectStream(
  ByVal iStreamIndex As Integer
 ) as Bool

 

Parameter
iStreamIndex
the index of selected audio track.

Return Value
Return true if successful, otherwise return false.


Example

   

Visual Basic Syntax
MoviePlayer1.FileName = "c:\test.mp4"
List1.Clear

For i = 0 To MoviePlayer1.AudioTrackGetCount - 1
    List1.AddItem MoviePlayer1.AudioTrackGetName(i)
Next

If List1.ListCount > 0 Then
    List1.ListIndex = 0
End If

MoviePlayer1.AudioTrackSelectStream 1