mediaFoundationReaderStreamGetNativeMediaType

Typefunction
DictionaryLCS
Librarymediafoundation
Syntax
mediaFoundationReaderStreamGetNativeMediaType(<pFilePath>, <pStreamIndex>)
Associationsmediafoundation
Summary

Get the ID of the native 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

RelatedCommand: mediaFoundationTranscode, mediaFoundationCreateReader, mediaFoundationDeleteMediaType
Description

The reader must already be created with mediaFoundationCreateReader. Call mediaFoundationDeleteMediaType with the returned ID when your script no longer needs to access the media type.

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