Classes (Media Streaming API)

[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.]

The Media Streaming API provides the following classes.

In this section

Topic Description
ActiveBasicDevice
Implements the IActiveBasicDevice interface that represents an active Digital Living Network Alliance (DLNA) device.
BasicDevice
Implements the IBasicDevice interface that represents a DLNA device.
CreateMediaRendererOperation
Registers an event handler that is invoked when the asynchronous operation started by CreateMediaRendererAsync or CreateMediaRendererFromBasicDeviceAsync completes, and provides a method that returns the results of the operation.
DeviceController
Implements the IDeviceController interface that retrieves a list of cached Digital Media Renderers (DMRs) and/or Digital Media Servers (DMSs), or to asynchronously find the DMRs and/or DMSs that are currently on the network.
DevicePair
Implements the IDevicePair interface that represents a pair of ActiveBasicDevice objects which is comprised of a renderer and a server.
GetMuteOperation
Registers an event handler that is invoked when the asynchronous operation started by GetMuteAsync completes, and provides a method that returns the results of the operation.
GetPositionInformationOperation
Registers an event handler that is invoked when the asynchronous operation started by GetPositionInformationAsync completes, and provides a method that returns the results of the operation.
GetStreamPropertiesOperation
Registers an event handler that is invoked when the asynchronous operation started by GetStreamPropertiesAsync completes, and provides a method that returns the results of the operation.
GetTransportInformationOperation
Registers an event handler that is invoked when the asynchronous operation started by GetTransportInformationAsync completes, and provides a method that returns the results of the operation.
GetVolumeOperation
Registers an event handler that is invoked when the asynchronous operation started by GetVolumeAsync completes, and provides a method that returns the results of the operation.
MediaRenderer
Implements the IMediaRenderer interface that represents a DLNA Digital Media Renderer (DMR) device.
PlaybackOperation
Registers an event handler that is invoked when an asynchronous operation started by one of the MediaRenderer playback methods completes, and provides a method that returns the results of the operation.
StreamSelectOperation
Registers an event handler that is invoked when the asynchronous operation started by GetMuteAsync completes, and provides a method that returns the results of the operation.
StreamSelector
Implements the IStreamSelectorStatics interface and enables selecting a stream.