IMediaRenderer::PlayAsync method
Instructs the DMR asynchronously to play the content that was specified by calling the SetSourceFromUriAsync, SetSourceFromStreamAsync, or SetSourceFromMediaSourceAsync method.
HRESULT PlayAsync(
[out] PlaybackOperation **value
);
- value [out]
Receives a reference to a PlaybackOperation object that is used to get results from the asynchronous operation.
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. |
Before this method is called, you must call SetSourceFromUriAsync, SetSourceFromStreamAsync, or SetSourceFromMediaSourceAsync first to specify the content.
The content will be played at the normal playback rate of "1". A different playback rate can be specified by calling the PlayAtSpeedAsync method.