Inheritance: IPlaybackRateChangeRequestedEventArgs
 private async void receiver_PlaybackRateChangeRequested(PlayToReceiver sender, PlaybackRateChangeRequestedEventArgs args)
 {
     await Dispatcher.RunAsync(CoreDispatcherPriority.High, () =>
     {
         VideoSource.PlaybackRate = args.Rate;
     });
 }
Beispiel #2
0
 private async void receiver_PlaybackRateChangeRequested(
     PlayToReceiver sender, PlaybackRateChangeRequestedEventArgs args)
 {
     await
         this.dispatcher.RunAsync(
             CoreDispatcherPriority.Normal, () => { this.VideoPlayer.PlaybackRate = args.Rate; });
 }
 private async void receiver_PlaybackRateChangeRequested(PlayToReceiver recv, PlaybackRateChangeRequestedEventArgs args)
 {
     await Dispatcher.RunAsync(CoreDispatcherPriority.High, () =>
     {
         if (dmrVideo != null && currentType == MediaType.AudioVideo)
         {
             if (dmrVideo.CurrentState != MediaElementState.Opening && dmrVideo.CurrentState != MediaElementState.Closed)
             {
                 dmrVideo.PlaybackRate = args.Rate;
             }
             else
             {
                 bufferedPlaybackRate = args.Rate;
             }
         }
     });
 }