Пример #1
0
        public bool PlayPause()
        {
            if (_playerState.GetPlayerState() == PlayerState.Playing)
            {
                timer.Stop();
                _playerState.SetPlayerState(PlayerState.Paused);
            }
            else
            {
                timer.Start();
                _playerState.SetPlayerState(PlayerState.Playing);
            }

            return(true);
        }