다음을 통해 공유


GlobalSystemMediaTransportControlsSession 클래스

정의

해당 세션에 대한 정보를 제공하고 제어를 허용할 수 있는 다른 앱의 재생 세션을 나타냅니다.

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
상속
Object Platform::Object IInspectable GlobalSystemMediaTransportControlsSession
특성

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1809 (10.0.17763.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v7.0에서 도입되었습니다.)
앱 기능
globalMediaControl

속성

SourceAppUserModelId

세션 원본 앱의 앱 사용자 모델 ID를 가져옵니다.

메서드

GetPlaybackInfo()

호출 시간에 정확한 이 세션의 GlobalSystemMediaTransportControlsSessionPlaybackInfo를 가져옵니다.

GetTimelineProperties()

이 세션 타임라인 상태를 나타내는 GlobalSystemMediaTransportControlsSessionTimelineProperties instance 가져옵니다.

TryChangeAutoRepeatModeAsync(MediaPlaybackAutoRepeatMode)

세션에서 MediaPlaybackAutoRepeatMode를 변경하려고 시도합니다.

TryChangeChannelDownAsync()

세션에서 채널을 변경하려고 시도합니다.

TryChangeChannelUpAsync()

세션에서 채널을 변경하려고 시도합니다.

TryChangePlaybackPositionAsync(Int64)

세션의 재생 위치를 지정된 시간(틱)으로 변경하려고 시도합니다.

TryChangePlaybackRateAsync(Double)

세션의 재생 속도를 요청된 값으로 변경하려고 시도합니다.

TryChangeShuffleActiveAsync(Boolean)

세션이 적극적으로 섞여 있는지 여부를 변경하려고 시도합니다.

TryFastForwardAsync()

세션을 FastForward 상태로 전환하려고 시도합니다.

TryGetMediaPropertiesAsync()

이 세션에 대한 미디어 속성을 가져옵니다.

TryPauseAsync()

세션 일시 중지를 요청하려고 시도합니다.

TryPlayAsync()

재생을 시작하도록 세션을 요청하려고 시도합니다.

TryRecordAsync()

세션이 녹음/녹화를 시작하도록 요청합니다.

TryRewindAsync()

세션을 되들이도록 요청하려고 시도합니다.

TrySkipNextAsync()

다음으로 건너뛰도록 세션을 요청합니다.

TrySkipPreviousAsync()

이전을 건너뛰도록 세션을 요청하려고 합니다.

TryStopAsync()

재생을 중지하도록 세션을 요청하려고 시도합니다.

TryTogglePlayPauseAsync()

현재 재생 상태에 따라 세션을 시작하거나 일시 중지하도록 요청합니다.

이벤트

MediaPropertiesChanged

세션의 MediaProperties가 변경되었을 때 발생합니다.

PlaybackInfoChanged

세션의 재생 정보가 변경되면 발생합니다.

TimelinePropertiesChanged

이 세션의 타임라인 속성이 변경되면 발생합니다.

적용 대상