IWMDMObjectInfo Interface
The IWMDMObjectInfo interface provides methods for getting and setting parameters that describe how playable objects on a storage medium are referenced or accessed by the IWMDMDeviceControl interface. The units indicated by the method parameters depend on the associated storage object as follows:
- If the storage object represents a playable audio file, then the relative storage units are milliseconds.
- If the storage object represents a folder or the root of a storage medium containing playable files, then the relative storage units are tracks.
This interface is not intended for non-playable files. If the IWMDMObjectInfo interface is acquired from an IWMDMStorage interface that represents a non-playable file, or a folder or a root file system containing no playable files, E_INVALIDTYPE is returned from all of the methods.
In addition to the methods inherited from IUnknown, the IWMDMObjectInfo interface exposes the following methods.
Method | Description |
GetLastPlayPosition | Retrieves the last play position of the object. The object must be an audio file on the media device. |
GetLongestPlayPosition | Retrieves the longest play position of the object. The object must be an audio file on the media device. |
GetPlayLength | Retrieves the play length of the object in units pertinent to the object. |
GetPlayOffset | Retrieves the play offset of the object, in units pertinent to the object. |
GetTotalLength | Retrieves the total play length of the object in units pertinent to the object. |
SetPlayLength | Sets the play length of the object, in units pertinent to the object. |
SetPlayOffset | Sets the play offset of the object, in units pertinent to the object. |
See Also