示例#1
0
 async void StopPlayers()
 {
     await _dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
     {
         if (InputVideo.CurrentState != MediaElementState.Paused)
         {
             InputVideo.Pause();
         }
         if (OutputVideo.CurrentState != MediaElementState.Paused)
         {
             OutputVideo.Pause();
         }
     });
 }
示例#2
0
 void InputPauseButton_Click(Object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     InputVideo.Pause();
 }
示例#3
0
 void InputPauseButton_Click(Object sender, RoutedEventArgs e)
 {
     InputVideo.Pause();
 }