VLC_WINRT.Utility.Services.RunTime.VlcService.Stop C# (CSharp) 메소드

Stop() 공개 메소드

public Stop ( ) : void
리턴 void
        public void Stop()
        {
            //TODO: fix this work around.
            if (CurrentState == MediaPlayerState.Paused)
            {
                Play();
            }
            DoVLCSafeAction(() =>
            {
                _vlcPlayer.Stop();
                UpdateStatus(MediaPlayerState.Stopped);
            });
        }

Usage Example

예제 #1
0
        public void Stop()
        {
            if (_vlcService.CurrentState == VlcService.MediaPlayerState.Stopped || _vlcService.CurrentState == VlcService.MediaPlayerState.NotPlaying)
            {
                return;
            }

            _vlcService.Stop();
            UnregisterMediaControls();
        }