Exemple #1
0
def admin_playback_play(mpd):
    """Attempts to tell Mopidy to play, regardless of Mopidy's current play state.
    """
    ipc.update_desired_player_state("play", "play")
    mpd.play()

    return redirect(url_for('admin_console'))    
Exemple #2
0
def admin_playback_play(mpd):
    """Attempts to tell Mopidy to play, regardless of Mopidy's current play state.
    """
    ipc.update_desired_player_state("play", "play")
    mpd.play()

    return redirect(url_for('admin_console'))
Exemple #3
0
def admin_playback_pause(mpd):
    ipc.update_desired_player_state("paused", "pause")
    mpd.pause()
    
    return redirect(url_for('admin_console'))