Windows Media Format SDK banner art
PreviousNext

IWMDMDeviceControl::Play

The Play method plays the device at the current position within the content.

Syntax

HRESULT Play();

Parameters

This method takes no parameters.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Description
E_BUSY The device is already performing an operation.
WMDM_E_NOTSUPPORTED The play function is not implemented on this device.
E_FAIL An unspecified error occurred.

Remarks

Some devices do not support playback. The GetCapabilities method should be called prior to calling the Play method. If unsupported playback is attempted, this method will return WMDM_E_NOTSUPPORTED.

To determine whether an audio format can be played by the media device before invoking the play operation, the IWMDMDevice::GetFormatSupport method can be called.

See Also

PreviousNext


© 1999 Microsoft Corporation. All rights reserved.