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 > ConvertCtrl Class : GetSelectedSourceStream Method |
public int GetSelectedSourceStream( StreamFormatType streamType )
'Declaration
Public Function GetSelectedSourceStream( _ ByVal streamType As StreamFormatType _ ) As Integer
'Usage
Dim instance As ConvertCtrl Dim streamType As StreamFormatType Dim value As Integer value = instance.GetSelectedSourceStream(streamType)
public: int GetSelectedSourceStream( StreamFormatType streamType )
You can get the number of streams by calling GetSourceStreamCount. You can change the current selected stream by calling SetSelectedSourceStream.
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 CurrentSourceProgram, the number of streams might change. So you will need to call ConvertCtrl.GetSelectedSourceStream 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.