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