A bit of background. I’m the developer responsible for the custom Arlo integration.
Recently Arlo changed their back end and changed the user agent we use to get rtsp streams. In this case we were lucky and another user was able to dig into the iPhone app and find a new user_agent to get this working.
By default Arlo returns mpeg-dash streams which I believe I can feed into the stream component. The only problem is I need to add some custom headers to the request. I need to provide the an egressToken, some referer information and a user agent otherwise the request fails with INVALIDDATA.
To give you an idea, this is how I can run the ffmpeg (from a Python test project) to connect to the stream. It’s the -headers piece I need.
os.system(f"ffmpeg -v debug "
f"-headers 'Egress-Token: {egress_token}\r\n"
"Origin: https://my.arlo.com\r\n"
"Referer: https://my.arlo.com/\r\n"
"User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 14_7_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15\r\n' "
f"-i '{stream_url}' "
"-c copy out.mp4")
Is this possible to do with the stream component? I tried adding headers to the STREAM_OPTIONS_SCHEMA but it didn’t help.