Windows Media Format SDK banner art
PreviousNext

IMDSPObjectInfo Interface

The IMDSPObjectInfo interface provides methods for getting and setting parameters that describe how playable objects on a storage medium are referenced or accessed by the IMDSPDeviceControl interface. The resolution of the method parameters depends on the scope of the associated storage object as follows:

This interface is not intended for non-playable files. If the IMDSPObjectInfo interface is acquired from an IMDSPStorage 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 IMDSPObjectInfo interface exposes the following methods.

Method Description
GetLastPlayPosition Retrieves the last play position of the object. The object must be a music file on the media device.
GetLongestPlayPosition Retrieves the longest play position of the object. The object must be a music file on the media device.
GetPlayLength Returns the play length of the object in units pertinent to the object.
GetPlayOffset Returns 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 the units pertinent to the object.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.