Example #1
0
        public void Pause()
        {
            if (!vlc_ok || !is_open)
            {
                return;
            }

            timer.Stop();
            MediaPlayer.Pause();
        }
 private void Pause_Click(object sender, RoutedEventArgs e)
 {
     btnStart.Visibility = Visibility.Visible;
     btnPause.Visibility = Visibility.Collapsed;
     btnStop.Visibility  = Visibility.Visible;
     _player.Pause();
     _isPause = true;
 }
Example #3
0
 private void PlayBtn_Click(object sender, RoutedEventArgs e)
 {
     if (VLC.IsPlaying)
     {
         VLC.Pause();
     }
     else
     {
         VLC.Play();
     }
 }
Example #4
0
 private void BtnPlay_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(FilePath))
     {
         if (IsStopped)
         {
             vlcControl.Play(new Uri(FilePath));
             IsRunning = false;//Will be Changed in next
         }
         if (IsRunning)
         {
             BtnPlayPause.Image = Properties.Resources.next_16x16;
         }
         else
         {
             BtnPlayPause.Image = Properties.Resources.pause_16x16;
         }
         IsRunning = !IsRunning;
         vlcControl.Pause();
         IsStopped = false;
     }
 }
Example #5
0
        public bool Pause()
        {
            if (!IsMediaPresent || Status != MEDIA_STATUS.PLAYING)
            {
                return(false);
            }

            control.Pause();

            /*
             * if(this.relatedVideo != null)
             * {
             *  this.relatedVideo.Pause();
             * }*/

            return(true);
        }