'Play media from a URL or file.'

def play_media(self, media_type, media_id, **kwargs):

    if (not (media_type == MEDIA_TYPE_MUSIC)):
        _LOGGER.error('Invalid    media    type    %s.    Only    %s    is    supported', media_type, MEDIA_TYPE_MUSIC)
        return
    self._vlc.set_media(self._instance.media_new(media_id))
    self._vlc.play()
    self._state = STATE_PLAYING
