MediaControl class – Windows app development

This documentation is archived and is not being maintained.

[MediaControl may be altered or unavailable for releases after Windows8.1. Instead, use SystemMediaTransportControls.]

Describes the object that applications register with, to receive media focus and transport control notifications.

The MediaControl class has these types of members:

The MediaControl class has these events.

The MediaControl class inherits methods from the Object class (C#/VB/C++).

The MediaControl class has these properties.

AlbumArt

Read/write

ArtistName

Read/write

IsPlaying

Read/write

SoundLevel

Read-only

TrackName

Read/write

The MediaControl class provides access to button press events. These events can be monitored, and can modify the response and behavior of an audio-aware app. Here is a JavaScript code snippet that shows how to add event listeners to a MediaControl object. It then shows how to write code to handle those events.

To see the complete listing for this example, see How to configure keys for media controls.

Device family

API contract

Namespace

Metadata

Minimum supported client

Windows8 [Windows Store apps only]

Minimum supported server

Windows Server2012 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

Metadata

Continue reading here:
MediaControl class - Windows app development

Related Posts

Comments are closed.