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 : GetSelectedStream Method |
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 )
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.