Playback​Rate​Change​Requested​Event​Args Playback​Rate​Change​Requested​Event​Args Playback​Rate​Change​Requested​Event​Args Class

Definition

Provides information about the PlaybackRateChangeRequested event.

public sealed class PlaybackRateChangeRequestedEventArgs : IPlaybackRateChangeRequestedEventArgspublic sealed class PlaybackRateChangeRequestedEventArgs : IPlaybackRateChangeRequestedEventArgsPublic NotInheritable Class PlaybackRateChangeRequestedEventArgs Implements IPlaybackRateChangeRequestedEventArgs
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

For an example of creating a software Play To receiver, see Media casting or Media casting.

async void receiver_PlaybackRateChangeRequested(
    Windows.Media.PlayTo.PlayToReceiver sender,
    Windows.Media.PlayTo.PlaybackRateChangeRequestedEventArgs args)
{
    await dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
        {
            VideoPlayer.PlaybackRate = args.Rate;
        });
}
function receiver_PlaybackRateChangeRequested(args) {
    videoPlayer.playbackRate = args.rate;
}
Async Sub receiver_PlaybackRateChangeRequested(
    sender As Windows.Media.PlayTo.PlayToReceiver,
    args As Windows.Media.PlayTo.PlaybackRateChangeRequestedEventArgs)

    Await Dispatcher.RunAsync(
        Windows.UI.Core.CoreDispatcherPriority.Normal,
        Sub()
            VideoPlayer.PlaybackRate = args.Rate
        End Sub)
End Sub

Properties

Rate Rate Rate

Gets the new playback rate.

public double Rate { get; }public double Rate { get; }Public ReadOnly Property Rate As double
Value
double double double

The new playback rate.

Attributes
See Also

See Also