'Initialize the media player.'

def __init__(self, hass, name):

    self.hass = hass
    self._name = name
    self.entity_id = media_player.ENTITY_ID_FORMAT.format(name)
    self._state = STATE_OFF
    self._volume_level = 0
    self._is_volume_muted = False
    self._media_title = None
    self._supported_features = 0
    self._source = None
    self._tracks = 12
    self._media_image_url = None
    self._shuffle = False
    self.service_calls = {'turn_on': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_TURN_ON), 'turn_off': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_TURN_OFF), 'mute_volume': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_VOLUME_MUTE), 'set_volume_level': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_VOLUME_SET), 'media_play': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_MEDIA_PLAY), 'media_pause': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_MEDIA_PAUSE), 'media_previous_track': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_MEDIA_PREVIOUS_TRACK), 'media_next_track': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_MEDIA_NEXT_TRACK), 'media_seek': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_MEDIA_SEEK), 'play_media': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_PLAY_MEDIA), 'volume_up': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_VOLUME_UP), 'volume_down': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_VOLUME_DOWN), 'media_play_pause': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_MEDIA_PLAY_PAUSE), 'select_source': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_SELECT_SOURCE), 'clear_playlist': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_CLEAR_PLAYLIST), 'shuffle_set': mock_service(hass, media_player.DOMAIN, media_player.SERVICE_SHUFFLE_SET)}
