public void Stop() { //TODO: fix this work around. if (CurrentState == MediaPlayerState.Paused) { Play(); } DoVLCSafeAction(() => { _vlcPlayer.Stop(); UpdateStatus(MediaPlayerState.Stopped); }); }
public void Stop() { if (_vlcService.CurrentState == VlcService.MediaPlayerState.Stopped || _vlcService.CurrentState == VlcService.MediaPlayerState.NotPlaying) { return; } _vlcService.Stop(); UnregisterMediaControls(); }