Freigeben über


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

Instructs the DMR asynchronously to prepare the content identified by the specified URI for playing once the current content has finished playing.

Syntax

HRESULT SetNextSourceFromUriAsync(
  [in]  HSTRING                     URI,
  [out] __FIAsyncOperation_1_UINT32 **value
);

Parameters

[in] URI

An HSTRING containing the file path or resource location of media content.

[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

Once the DMR finishes playing the current content, it will automatically switch to the content identified by the URI parameter.

Requirements

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

See also

IMediaRenderer