ReaderDurationGet Method (IMFReader)
duration
Gets duration of a source file
Syntax
Sub ReaderDurationGet( _
   ByRef _pdblDuration As Double _
) 
void ReaderDurationGet( 
   out double _pdblDuration
)
procedure ReaderDurationGet( 
   Out  _pdblDuration: Double
); 
void ReaderDurationGet( 
   [PARAMFLAG::Out] double _pdblDuration
) 

Parameters

_pdblDuration
duration
Example

Here is an example of how to get a duration of a file:

                
m_objMFReader = new MFReaderClass();
m_objMFReader.ReaderOpen(sourceFileName, "");
double dblDur;
m_objMFReader.ReaderDurationGet(out dblDur);
See Also

Reference

IMFReader Interface
IMFReader Members