Error processing SSI file
LEADTOOLS Multimedia (Leadtools.Multimedia assembly)

Show in webframe

GetSelectedStream Method






A StreamFormatType enumeration value specifying the desired stream type. Only video and audio streams are currently supported, so this parameter should be StreamFormatType.Audio or StreamFormatType.Video.
Gets the index of the selected stream of type streamType.
Syntax
public int GetSelectedStream( 
   StreamFormatType streamType
)
'Declaration
 
Public Function GetSelectedStream( _
   ByVal streamType As StreamFormatType _
) As Integer
'Usage
 
Dim instance As PlayCtrl
Dim streamType As StreamFormatType
Dim value As Integer
 
value = instance.GetSelectedStream(streamType)
public:
int GetSelectedStream( 
   StreamFormatType streamType
) 

Parameters

streamType
A StreamFormatType enumeration value specifying the desired stream type. Only video and audio streams are currently supported, so this parameter should be StreamFormatType.Audio or StreamFormatType.Video.

Return Value

A value representing the index of the selected stream (between 0 and StreamCount - 1), where StreamCount is the number of streams of type streamType.
Remarks

You can get the number of streams by calling GetStreamCount. You can change the current selected stream by calling SetSelectedStream.

The streams of a particular type are mutually exclusive. In other words, selecting a stream will automatically unselect the previously selected stream of the same type.

If you change the current program using CurrentProgram, the number of streams might change. So you will need to call PlayCtrl.GetSelectedStream again to see which stream is selected.

Do not confuse this with the Source Stream object returned by SourceStream. That refers to an alternative way to provide the source file using a System.IO.Stream object instead of a file on disk. Both properties/methods have the word Stream in the name, but there is no connection between the source stream object and the audio/video streams present in a file.

Refer to Programs and Streams for more information on Programs and Streams terminology in LEADTOOLS Multimedia.

Requirements

Target Platforms

See Also

Reference

PlayCtrl Class
PlayCtrl Members
GetStreamCount Method
SetSelectedStream Method
CurrentProgram Property
ProgramCount Property

Error processing SSI file
Leadtools.Multimedia requires a Multimedia or Multimedia Suite license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features