MediaRenderer class

[The feature associated with this page, Windows Media Streaming API, is a legacy feature. It has been superseded by Media Casting. Media Casting has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Media Casting instead of Windows Media Streaming API, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Implements the IMediaRenderer interface that represents a DLNA Digital Media Renderer (DMR) device.

MediaRenderer has these types of members:

Methods

The MediaRenderer class has these methods.

Method Description
add_RenderingParametersUpdate Registers an event handler for the RenderingParametersUpdate event.
add_TransportParametersUpdate Registers an event handler for the TransportParametersUpdate event.
GetMuteAsync Queries the DMR asynchronously to determine if audio is currently muted or unmuted.
GetPositionInformationAsync Queries the DMR asynchronously to retrieve position information.
GetTransportInformationAsync Queries the DMR asynchronously to retrieve transport information.
GetVolumeAsync Queries the DMR asynchronously for its current audio volume level.
PauseAsync Instructs the DMR asynchronously to pause playing the current content.
PlayAsync Instructs the DMR asynchronously to play the content that was specified by calling the SetSourceFromUriAsync, SetSourceFromStreamAsync, or SetSourceFromMediaSourceAsync method.
PlayAtSpeedAsync Instructs the DMR asynchronously to play the content that was specified by calling the SetSourceFromUriAsync, SetSourceFromStreamAsync, or SetSourceFromMediaSourceAsync method at the specified rate.
remove_RenderingParametersUpdate Unregisters an event handler for the RenderingParametersUpdate event.
remove_TransportParametersUpdate Unregisters an event handler for the TransportParametersUpdate event.
SeekAsync Instructs the DMR asynchronously to seek to a particular time offset.
SetMuteAsync Instructs the DMR asynchronously to either mute or unmute the audio.
SetNextSourceFromMediaSourceAsync Instructs the DMR asynchronously to prepare the specified content for playing once the current content has finished playing.
SetNextSourceFromStreamAsync Instructs the DMR asynchronously to prepare the specified media stream for playing once the current content has finished playing.
SetNextSourceFromUriAsync Instructs the DMR asynchronously to prepare the content identified by the specified URI for playing once the current content has finished playing.
SetSourceFromMediaSourceAsync Instructs the DMR asynchronously to prepare the specified content for playing.
SetSourceFromStreamAsync Instructs the DMR asynchronously to prepare the specified media stream for playing once the current content has finished playing.
SetSourceFromUriAsync Instructs the DMR asynchronously to prepare the content identified by the specified URI for playing.
SetVolumeAsync Sets the audio volume level on the DMR asynchronously to the specified value.
StopAsync Instructs the DMR asynchronously to stop playing the current content.

Properties

The MediaRenderer class has these properties.

Property Access type Description
ActionInformation
Read-only
Gets information about which methods can currently be invoked on the DMR.
IsAudioSupported
Read-only
Gets a value that indicates whether the DMR is capable of playing audio content.
IsImageSupported
Read-only
Gets a value that indicates whether the DMR is capable of displaying images.
IsVideoSupported
Read-only
Gets a value that indicates whether the DMR is capable of playing video content.