def async_play_media(self, media_type, media_id, **kwargs):
    'Send the play_media command to the media player.\n\n        This method must be run in the event loop and returns a coroutine.\n        '
    if (media_type == 'CHANNEL'):
        return self._server.Player.Open({'item': {'channelid': int(media_id)}})
    else:
        return self._server.Player.Open({'item': {'file': str(media_id)}})
Send the play_media command to the media player.

This method must be run in the event loop and returns a coroutine.
def async_play_media(self, media_type, media_id, **kwargs):
    'Send the play_media command to the media player.\n\n        This method must be run in the event loop and returns a coroutine.\n        '
    if (media_type == 'CHANNEL'):
        return self._server.Player.Open({'item': {'channelid': int(media_id)}})
    else:
        return self._server.Player.Open({'item': {'file': str(media_id)}})