UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:mswmdm.IWMDMObjectInfo.GetPlayLength |
IWMDMObjectInfo::GetPlayLength (mswmdm.h) |
The GetPlayLength method retrieves the play length of the object in units appropriate to the format. This is the remaining length that the file can play, not its total length. |
|
wmdm\iwmdmobjectinfo_getplaylength.htm |
WMDM |
7f553513-0928-41b8-858f-c06ec57660d1 |
12/05/2018 |
GetPlayLength, GetPlayLength method [windows Media Device Manager], GetPlayLength method [windows Media Device Manager],IWMDMObjectInfo interface, IWMDMObjectInfo interface [windows Media Device Manager],GetPlayLength method, IWMDMObjectInfo.GetPlayLength, IWMDMObjectInfo::GetPlayLength, IWMDMObjectInfoGetPlayLength, mswmdm/IWMDMObjectInfo::GetPlayLength, wmdm.iwmdmobjectinfo_getplaylength |
mswmdm.h |
Windows |
Mssachlp.lib |
Windows |
19H1 |
|
|
|
|
|
|
The GetPlayLength method retrieves the play length of the object in units appropriate to the format. This is the remaining length that the file can play, not its total length.
Pointer to a DWORD specifying the remaining play length of the file, in milliseconds.
The method returns an HRESULT. All the interface methods in Windows Media Device Manager can return any of the following classes of error codes:
- Standard COM error codes
- Windows error codes converted to HRESULT values
- Windows Media Device Manager error codes
The value of the play length retrieved is either the total length of the object minus the current play position (if the SetPlayLength method has not been called), or the value set by SetPlayLength clipped to be no greater than the total play length of the object minus the current play position.
The play length information can change either when the user starts playing a file on the media device or when an application invokes the Play method.
For folders or file systems containing playable files, the value returned is in tracks or numbers of playable files in that folder or in the root of that file system.