mediaFoundationReaderDuration

Typefunction
DictionaryLCS
Librarymediafoundation
Syntax
mediaFoundationReaderDuration(<pFilePath>)
Associationsmediafoundation
Summary

Get the duration of the media file. Platform:desktop

OSwindows
Parameters
NameTypeDescription
pFilePath

The path to a media file

RelatedCommand: mediaFoundationTranscode, mediaFoundationCreateReader
Description

The reader must already be created with mediaFoundationCreateReader. The value returned is in 100 nanosecond units.

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