示例#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'))    
示例#2
0
文件: admin.py 项目: imbstack/partify
def admin_playback_pause(mpd):
    ipc.update_desired_player_state("paused", "pause")
    mpd.pause()
    
    return redirect(url_for('admin_console'))