def METHOD_NAME(self, media_id, media_type):
    stream_path = 'stream'
    if media_type == 'video':
        stream_path += '/vod/'
    else:
        stream_path += '?eventId='
    try:
        return self._call_api(
            stream_path, media_id)['playerUrlCallback']
    except ExtractorError as e:
        if isinstance(e.cause, compat_HTTPError) and e.cause.code == 403:
            raise ExtractorError(
                self._parse_json(e.cause.read().decode(), media_id)['messages'][0],
                expected=True)
        raise