Beispiel #1
0
 /// <summary>
 /// This is the click handler for the 'Open' button.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Open_Click(object sender, RoutedEventArgs e)
 {
     VideoStabilized.RemoveAllEffects();
     try
     {
         VideoStabilized.AddVideoEffect(Windows.Media.VideoEffects.VideoStabilization, true, null);
     }
     catch (Exception exc)
     {
         // HRESULT_FROM_WIN32(ERROR_NOT_SUPPORTED)
         if ((uint)exc.HResult == 0x80070032)
         {
             MainPage.Current.NotifyUser("Video Stabilization not supported.", NotifyType.ErrorMessage);
         }
         else
         {
             MainPage.Current.NotifyUser("Video Stabilization error.", NotifyType.ErrorMessage);
         }
         return;
     }
     rootPage.PickSingleFileAndSet(new string[] { ".mp4", ".wmv", ".avi" }, Video, VideoStabilized);
 }
Beispiel #2
0
 /// <summary>
 /// This is the click handler for the 'Open' button.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Open_Click(object sender, RoutedEventArgs e)
 {
     VideoStabilized.RemoveAllEffects();
     VideoStabilized.AddVideoEffect(Windows.Media.VideoEffects.VideoStabilization, true, null);
     rootPage.PickSingleFileAndSet(new string[] { ".mp4", ".wmv", ".avi" }, Video, VideoStabilized);
 }