Exemplo n.º 1
0
 /// <summary>
 /// Pause Video Animation
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void PauseVideo(object sender, EventArgs e)
 {
     if (VideoControl.CanPause)
     {
         VideoControl.Pause();
     }
 }
Exemplo n.º 2
0
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            var viewModel = this.DataContext as GymTrainerViewModel;

            viewModel.TurnOnMedia += StartMedia;

            VideoControl.ScrubbingEnabled = true;
            VideoControl.Play();
            VideoControl.Pause();
        }
    public void Back()
    {
        // Pause the video
        VideoControl videoController = (VideoControl)media.GetComponent(typeof(VideoControl));

        videoController.Pause();
        river.GetComponent <GvrAudioSource> ().Pause();
        // Enable the welcome panel
        showWelcomeScreen();
        // Disable instructions panel and back button
        hideVideoControls();
    }
Exemplo n.º 4
0
 private void MediaPauseBtn_Click(object sender, RoutedEventArgs e)
 {
     if ((string)MediaPauseBtn.Content == "Pause")
     {
         VideoControl.Pause();
         MediaPauseBtn.Content = "Resume";
     }
     else
     {
         VideoControl.Play();
         MediaPauseBtn.Content = "Pause";
     }
 }
Exemplo n.º 5
0
 private void CanvasForValues_PreviewMouseUp(object sender, MouseButtonEventArgs e)
 {
     Canvas.SetLeft(myTimelineLine, e.GetPosition(CanvasForValues).X);
     try
     {
         //VideoControl.Pause();
         double left = Canvas.GetLeft(myTimelineLine);
         VideoControl.Position = TimeSpan.FromMilliseconds(left * frameLength * totalFrames / valuesScroll.Width);
         VideoControl.Pause();
     }
     catch (Exception)
     {
     }
 }
Exemplo n.º 6
0
        private void PauseButton_Click(object sender, RoutedEventArgs e)
        {
            VideoControl.Pause();

            PauseTextBox.Text = "0";
        }
Exemplo n.º 7
0
 private void btnPause_Click(object sender, RoutedEventArgs e)
 {
     VideoControl.Pause();
 }
Exemplo n.º 8
0
 private void BtPauseClick(object sender, RoutedEventArgs e)
 {
     VideoControl.Visibility = Visibility.Visible;
     VideoControl.Pause();
 }
Exemplo n.º 9
0
 private void VideoControl_MediaOpened(object sender, RoutedEventArgs e)
 {
     VideoControl.ScrubbingEnabled = true;
     VideoControl.Play();
     VideoControl.Pause();
 }
 void dispatcherTimer_Tick(object Sender, EventArgs e)
 {
     _dispatcherTimer.Stop();
     VideoControl.Pause();
 }