MediaRenderer.SetSourceFromMediaSourceAsync method
Instructs the DMR asynchronously to prepare the specified content for playing.
HRESULT SetSourceFromMediaSourceAsync(
[in] IInspectable *mediaSource,
[out] PlaybackOperation **value
);
mediaSource [in]
A reference to an IInspectable interface implementing IMFActivate. The IMFActivate interface is used to query for an IMFMediaSource interface that represents the media source.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. |