mediaFoundationReaderStreamSetCurrentMediaType

Typecommand
DictionaryLCS
Librarymediafoundation
Syntax
mediaFoundationReaderStreamSetCurrentMediaType <pFilePath>, <pStreamIndex>, <pMediaTypeID>
Associationsmediafoundation
Summary

Set the current media type of a reader stream. Platform:desktop

OSwindows
Parameters
NameTypeDescription
pFilePath

The path to a media file

pStreamIndex

An integer between 1 and the number of streams

pMediaTypeID

A media type ID

Values
NameTypeDescription
The result

Returns true if successful

RelatedCommand: mediaFoundationTranscode, mediaFoundationCreateReader
Description

The reader must already be created with mediaFoundationCreateReader. The current media type is the type that samples will be read as. The command will return false if the reader is unable to decode the stream into the requested media type.

Note:See the mediaFoundationTranscode documentation for a complete example of using this handler.