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(); }
public void Pause() { musicPlayer.Pause(); }
/// <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(); }
private void PauseSongAction() { StopTimers(); _player.Pause(); }