Error processing SSI file
LEADTOOLS Multimedia (Leadtools.Multimedia assembly)

Show in webframe

SetSelectedSourceStream Method






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.
The 0-based index of the stream to select
Indicates which stream of type streamType should be selected (rendered).
Syntax
public void SetSelectedSourceStream( 
   StreamFormatType streamType,
   int val
)
'Declaration
 
Public Sub SetSelectedSourceStream( _
   ByVal streamType As StreamFormatType, _
   ByVal val As Integer _
) 
'Usage
 
Dim instance As ConvertCtrl
Dim streamType As StreamFormatType
Dim val As Integer
 
instance.SetSelectedSourceStream(streamType, val)
public:
void SetSelectedSourceStream( 
   StreamFormatType streamType,
   int val
) 

Parameters

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
Remarks

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 GetSourceStreamCount(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 GetSelectedSourceStream.

If you change the current program by calling CurrentSourceProgram, 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.

Requirements

Target Platforms

See Also

Reference

ConvertCtrl Class
ConvertCtrl Members
GetSourceStreamCount Method
GetSelectedSourceStream Method
CurrentSourceProgram Property
SourceProgramCount Property

Error processing SSI file
Leadtools.Multimedia requires a Multimedia or Multimedia Suite license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features