Retrieves the duration of the media.
|C||HRESULT IltmmPlay_get_Duration(pPlay, pDuration)|
Pointer to an IltmmPlay interface.
Pointer to a variable that receives the total media length, in seconds.
|S_OK||The function was successful.|
|<> S_OK||An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.|
This function retrieves the duration of the media at normal playback speed. Changing the playback rate does not affect the duration.
|C||Simple Media Player|
|C++||Simple Media Player|
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries