Microsoft DirectX 8.1 (C++) |
The AMTimelineSrc.SetStreamNumber method specifies which stream to read from the source file.
Syntax
object.SetStreamNumber(
Val As Long
)
Parameters
Val
The stream number, from the set of streams matching the media type of the parent group.
Error Codes
If the method fails, an error is raised, and Err.Number can be set to the following value:
Value | Description |
E_INVALIDARG | The Val parameter is less than zero. |
Remarks
The Val parameter specifies a stream number from the set of streams that matches the parent group's media type, not from the entire set of streams in the source file. For example, suppose that a file contains two video streams and two audio streams. If the AMTimelineSrc object is inside a video group, setting Val to 0 selects the first video stream. The caller is responsible for specifying a valid stream number.
The stream number defaults to zero.
See Also