예제 #1
0
 public void StopStreaming()
 {
     isOpening = false;
     if (VlcMediaPlayer.IsPlaying())
     {
         VlcMediaPlayer.Stop();
     }
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(IsPlaying)));
 }
예제 #2
0
        /// <summary>
        /// Plays the media
        /// </summary>
        /// <returns>If playing after invoking play</returns>
        public bool Play()
        {
            _vlcMediaPlayer.Play();

            return(_vlcMediaPlayer.IsPlaying());
        }