Ejemplo n.º 1
0
        public void PostControl(PlayerControl control)
        {
            Trace.WriteLine("PostControl: " + control);
            switch (control.Action)
            {
            case PlayerControlAction.Next:
                _player.PlayNextSong();
                break;

            case PlayerControlAction.Stop:
                _player.Stop();
                break;

            case PlayerControlAction.Pause:
                _player.Pause();
                break;
            }
        }
 private void ViewOnPausePressed(object sender, EventArgs eventArgs)
 {
     musicPlayer.Pause();
 }
Ejemplo n.º 3
0
 public void Pause()
 {
     musicPlayer.Pause();
 }
Ejemplo n.º 4
0
 /// <summary>
 ///     Pause playing the current track.
 /// </summary>
 /// <exception cref="InvalidPlayerException">Thrown if not connected to a voice channel.</exception>
 /// <exception cref="InvalidTrackException">Thrown if there is no track playing.</exception>
 /// <exception cref="InvalidOperationException">Thrown if the player is already paused.</exception>
 public async Task Pause()
 {
     await _player.Pause();
 }
Ejemplo n.º 5
0
 private void PauseSongAction()
 {
     StopTimers();
     _player.Pause();
 }