Inheritance: IVolumeChangeRequestedEventArgs
 private async void receiver_VolumeChangeRequested(PlayToReceiver recv, VolumeChangeRequestedEventArgs args)
 {
     await Dispatcher.RunAsync(CoreDispatcherPriority.High, () =>
     {
         if (dmrVideo != null && currentType == MediaType.AudioVideo)
         {
             dmrVideo.Volume = args.Volume;
         }
     });
 }
Exemple #2
0
 private async void receiver_VolumeChangeRequested(PlayToReceiver sender, VolumeChangeRequestedEventArgs args)
 {
     await
         this.dispatcher.RunAsync(
             CoreDispatcherPriority.Normal, () => { this.VideoPlayer.Volume = args.Volume; });
 }
 private async void receiver_VolumeChangeRequested(PlayToReceiver sender, VolumeChangeRequestedEventArgs args)
 {
     await Dispatcher.RunAsync(CoreDispatcherPriority.High, () =>
     {
         VideoSource.Volume = args.Volume;
     });
 }