Share via


GlobalSystemMediaTransportControlsSession Class

Definition

Represents a playback session from another app providing info about that session and possibly allowing control.

public ref class GlobalSystemMediaTransportControlsSession sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GlobalSystemMediaTransportControlsSession final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GlobalSystemMediaTransportControlsSession
Public NotInheritable Class GlobalSystemMediaTransportControlsSession
Inheritance
Object Platform::Object IInspectable GlobalSystemMediaTransportControlsSession
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)
App capabilities
globalMediaControl

Properties

SourceAppUserModelId

Gets the App user model Id of the source app of the session.

Methods

GetPlaybackInfo()

Gets the GlobalSystemMediaTransportControlsSessionPlaybackInfo for this session, accurate to the time of the call.

GetTimelineProperties()

Gets the GlobalSystemMediaTransportControlsSessionTimelineProperties instance that represents this sessions timeline state.

TryChangeAutoRepeatModeAsync(MediaPlaybackAutoRepeatMode)

Attempts to change the MediaPlaybackAutoRepeatMode on the session.

TryChangeChannelDownAsync()

Attempts to change the channel down on the session.

TryChangeChannelUpAsync()

Attempts to change the channel up on the session.

TryChangePlaybackPositionAsync(Int64)

Attempts to change the playback position on the session to the specified time, in ticks.

TryChangePlaybackRateAsync(Double)

Attempts to change the playback rate on the session to the requested value.

TryChangeShuffleActiveAsync(Boolean)

Attempts to change whether the session is actively shuffling or not.

TryFastForwardAsync()

Attempts to put the session into a FastForward state.

TryGetMediaPropertiesAsync()

Attempts to get the media properties for this session.

TryPauseAsync()

Attempts to request the session to pause.

TryPlayAsync()

Attempts to request the session to start playback.

TryRecordAsync()

Attempts to request that the session starts recording.

TryRewindAsync()

Attempts to request the session to rewind.

TrySkipNextAsync()

Attempts to request the session to skip next.

TrySkipPreviousAsync()

Attempts to request the session to skip previous.

TryStopAsync()

Attempts to request the session to stop playback.

TryTogglePlayPauseAsync()

Attempts to request the session to start or pause playback, based on its current playback state.

Events

MediaPropertiesChanged

Occurs when the session's MediaProperties have changed.

PlaybackInfoChanged

Occurs when the session's playback info has changed.

TimelinePropertiesChanged

Occurs when the timeline properties of this session change.

Applies to