Microsoft DirectX 8.1 (C++) |
The IMultiMediaStream interface provides methods that control a multimedia stream and provide access to its underlying media streams. A multimedia stream is the highest-level streaming object and can contain one or more media streams. While each media stream is media-type specific (audio, video, and so on), multimedia streams are generic across all types because they must provide access to a number of streams that can have different media types. IMultiMediaStream interface methods enable you to enumerate and retrieve pointers to the specific streams; IMediaStream interface methods provide specific control over the media stream behavior.
For sample code that implements the multimedia streaming interfaces, see Multimedia Streaming Sample Code.
Implement this interface when you want to create containers for a specific type of media stream.
Use this interface when your application must enumerate and control a multimedia stream's underlying, type-specific streams.
In addition to the methods inherited from IUnknown, the IMultiMediaStream interface exposes the following methods.
Method | Description |
EnumMediaStreams | Retrieves a media stream from a multimedia stream by zero-based index. |
GetDuration | Retrieves the media stream's duration. |
GetEndOfStreamEventHandle | Retrieves the handle for the event triggered when the stream completes playback. |
GetInformation | Retrieves the capabilities and stream type of a multimedia stream. |
GetMediaStream | Retrieves a media stream that has the specified purpose ID. |
GetState | Retrieves the multimedia stream's current state. |
GetTime | Retrieves the current time from the multimedia stream's clock, if it has a clock. |
Seek | Sets the seek location of all derived media streams to the specified time. |
SetState | Sets the media stream to either a running or stopped state. |