Skip to content

Latest commit

 

History

History
135 lines (107 loc) · 4.05 KB

nf-mswmdm-imdspdevicecontrol-play.md

File metadata and controls

135 lines (107 loc) · 4.05 KB
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.IMDSPDeviceControl.Play
IMDSPDeviceControl::Play (mswmdm.h)
The Play method begins playing at the current seek position. If the Seek method has not been called, then playing begins at the beginning of the first file, and the play length is not defined.
IMDSPDeviceControl interface [windows Media Device Manager]
Play method
IMDSPDeviceControl.Play
IMDSPDeviceControl::Play
IMDSPDeviceControlPlay
Play
Play method [windows Media Device Manager]
Play method [windows Media Device Manager]
IMDSPDeviceControl interface
mswmdm/IMDSPDeviceControl::Play
wmdm.imdspdevicecontrol_play
wmdm\imdspdevicecontrol_play.htm
WMDM
09ca1922-3b33-47a8-a851-a1d221a568b9
12/05/2018
IMDSPDeviceControl interface [windows Media Device Manager],Play method, IMDSPDeviceControl.Play, IMDSPDeviceControl::Play, IMDSPDeviceControlPlay, Play, Play method [windows Media Device Manager], Play method [windows Media Device Manager],IMDSPDeviceControl interface, mswmdm/IMDSPDeviceControl::Play, wmdm.imdspdevicecontrol_play
mswmdm.h
Windows
Mssachlp.lib
Windows
19H1
IMDSPDeviceControl::Play
mswmdm/IMDSPDeviceControl::Play
c++
APIRef
kbSyntax
COM
mssachlp.lib
mssachlp.dll
IMDSPDeviceControl.Play

IMDSPDeviceControl::Play

-description

The Play method begins playing at the current seek position. If the Seek method has not been called, then playing begins at the beginning of the first file, and the play length is not defined.

-returns

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_BUSY
The device is busy.
WMDM_E_NOTSUPPORTED
The play function is not implemented on this device.
E_FAIL
An unspecified error occurred.

-remarks

This method is used to invoke both device playback (playback of an audio track on a storage medium of the media device) and streaming audio playback (streaming audio data from the user's computer to the media device, where it is played). The Seek method determines the form of playback that occurs.

Some devices do not support either device playback or streaming audio playback. Before attempting to start playback of a particular type, the GetCapabilities method must be called. If unsupported playback is attempted, this method returns WMDM_E_NOTSUPPORTED.

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

-see-also

IMDSPDevice::GetFormatSupport

IMDSPDeviceControl Interface

IMDSPDeviceControl::GetCapabilities

IMDSPDeviceControl::Seek