try mediaProtocol set to the API request protocol,
if fails - fallback to http.