private void HandleReceiverTimeUpdateRequested(PlayToReceiver sender, Object args)
 {
     Dispatch(() =>
     {
         if (_currentPlaybackType == PlaybackType.Video)
         {
             _receiver.NotifyTimeUpdate(VideoPlayer.Position);
         }
         else if (_currentPlaybackType == PlaybackType.Image)
         {
             _receiver.NotifyTimeUpdate(new TimeSpan(0));
         }
     });
 }
예제 #2
0
 private async void receiver_TimeUpdateRequested(PlayToReceiver sender, object args)
 {
     await Dispatcher.RunAsync(CoreDispatcherPriority.High, () =>
     {
         receiver.NotifyTimeUpdate(VideoSource.Position);
     });
 }
 private async void receiver_TimeUpdateRequested(PlayToReceiver recv, Object args)
 {
     await Dispatcher.RunAsync(CoreDispatcherPriority.High, () =>
     {
         if (IsReceiverStarted)
         {
             if (dmrVideo != null && currentType == MediaType.AudioVideo)
             {
                 receiver.NotifyTimeUpdate(dmrVideo.Position);
             }
             else if (dmrImage != null && currentType == MediaType.Image)
             {
                 receiver.NotifyTimeUpdate(new TimeSpan(0));
             }
         }
     });
 }