Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction | Help Version 19.0.2.9
|
Leadtools.Multimedia Namespace > PlayCtrl Class : SetSelectedStream Method |
public void SetSelectedStream( StreamFormatType streamType, int val )
'Declaration
Public Sub SetSelectedStream( _ ByVal streamType As StreamFormatType, _ ByVal val As Integer _ )
'Usage
Dim instance As PlayCtrl Dim streamType As StreamFormatType Dim val As Integer instance.SetSelectedStream(streamType, val)
public: void SetSelectedStream( StreamFormatType streamType, int val )
The index of the program is 0-based, so it should be between 0 and StreamCount(streamType) - 1, where StreamCount(streamType) is the number of streams of type streamType in the current program. You can get the number of streams of type streamType by calling GetStreamCount(streamType).
The streams of a particular type are mutually exclusive, so selecting one stream will automatically unselect the previously selected stream of the same type.
You can get the index of the current stream by calling GetSelectedStream.
If you change the current program by calling CurrentProgram, the stream selection might change because the number of streams of type streamType might change.
Refer to Programs and Streams for more information on Programs and Streams terminology in LEADTOOLS Multimedia.