IMediaRenderer::PlayAtSpeedAsync method (windows.media.streaming.h)

Instructs the DMR asynchronously to play the content that was specified by calling the SetSourceFromUriAsync, SetSourceFromStreamAsync, or SetSourceFromMediaSourceAsync method at the specified rate.

Syntax

HRESULT PlayAtSpeedAsync(
  [in]  ABI::Windows::Media::Streaming::PlaySpeed playSpeed,
  [out] ABI::Windows::Foundation::IAsyncAction    **value
);

Parameters

[in] playSpeed

The rate at which the DMR will be instructed to play the content. This value must correspond to one of the values returned by the IMediaRendererActionInformation::PlaySpeeds method.

[out] value

Receives a reference to a PlaybackOperation object that is used to get results from the asynchronous operation.

Return value

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.

Remarks

Before this method is called, you must call SetSourceFromUriAsync, SetSourceFromStreamAsync, or SetSourceFromMediaSourceAsync first to specify the content.

Requirements

Requirement Value
Target Platform Windows
Header windows.media.streaming.h

See also

IMediaRenderer