MediaPlaybackSession.PlaybackRate Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value representing the current playback rate for the MediaPlaybackSession.
public:
property double PlaybackRate { double get(); void set(double value); };
double PlaybackRate();
void PlaybackRate(double value);
public double PlaybackRate { get; set; }
var double = mediaPlaybackSession.playbackRate;
mediaPlaybackSession.playbackRate = double;
Public Property PlaybackRate As Double
Property Value
double
The current playback rate for the MediaPlaybackSession.
Remarks
This value is expressed as a ratio of the desired rate to the normal playback rate. For example, a value of 1.5 sets the playback rate to 150% of the original.
The playback rate can't be set to a value greater than 1.0 while a MediaPlaybackItem with CanSkip set to false is playing. Attempting to do so will cause an exception to be thrown.
Applies to
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin