public void SetSelectedStream(
StreamFormatType streamType,
int val
)
public:
void SetSelectedStream(
StreamFormatType streamType,
int val
)
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.
val
The 0-based index of the stream to select
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.
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