public int GetSelectedSourceStream(
StreamFormatType streamType
)
public:
int GetSelectedSourceStream(
StreamFormatType streamType
)
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.
A value representing the index of the selected stream (between 0 and StreamCount - 1), where StreamCount is the number of streams of type 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.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document