Dela via


MediaPlaybackSession.PlaybackRotation Property

Definition

Gets or sets a value from the MediaRotation enumeration that specifies the rotation applied to video content during playback.

public:
 property MediaRotation PlaybackRotation { MediaRotation get(); void set(MediaRotation value); };
MediaRotation PlaybackRotation();

void PlaybackRotation(MediaRotation value);
public MediaRotation PlaybackRotation { get; set; }
var mediaRotation = mediaPlaybackSession.playbackRotation;
mediaPlaybackSession.playbackRotation = mediaRotation;
Public Property PlaybackRotation As MediaRotation

Property Value

The rotation applied to video content during playback.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to