@asyncio.coroutine
def async_set_play_state(self, state):
    'Helper method for play/pause/toggle.'
    players = (yield from self._get_players())
    if (len(players) != 0):
        (yield from self._server.Player.PlayPause(players[0]['playerid'], state))
Helper method for play/pause/toggle.
@asyncio.coroutine
def async_set_play_state(self, state):
    
    players = (yield from self._get_players())
    if (len(players) != 0):
        (yield from self._server.Player.PlayPause(players[0]['playerid'], state))