Movie Player ActiveX Control

MP4GetStreamCount

 

Get the number of available audio streams for MP4, MOV, M4V files only.
 

Public Function MP4GetStreamCount( ) as Integer

 

No Parameter

Return Value
Return the the number of available streams.


Example

   

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

For i = 0 To MoviePlayer1.MP4GetStreamCount - 1
    List1.AddItem MoviePlayer1.MP4GetStreamName(i)
Next

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