PlaybackRateChangeRequestedEventArgs
PlaybackRateChangeRequestedEventArgs
PlaybackRateChangeRequestedEventArgs
PlaybackRateChangeRequestedEventArgs
Class
Definition
Provides information about the PlaybackRateChangeRequested event.
public : sealed class PlaybackRateChangeRequestedEventArgs : IPlaybackRateChangeRequestedEventArgspublic sealed class PlaybackRateChangeRequestedEventArgs : IPlaybackRateChangeRequestedEventArgsPublic NotInheritable Class PlaybackRateChangeRequestedEventArgs Implements IPlaybackRateChangeRequestedEventArgs// You can use this class in JavaScript.
- 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