'Send the play_media command to the media player.
If ATTR_MEDIA_ENQUEUE is True, add `media_id` to the queue.'

@soco_error
@soco_coordinator
def play_media(self, media_type, media_id, **kwargs):

    if kwargs.get(ATTR_MEDIA_ENQUEUE):
        from soco.exceptions import SoCoUPnPException
        try:
            self._player.add_uri_to_queue(media_id)
        except SoCoUPnPException:
            _LOGGER.error('Error    parsing    media    uri    "%s",    please    check    it\'s    a    valid    media    resource    supported    by    Sonos', media_id)
    else:
        self._player.play_uri(media_id)
