You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to handle incoming requests for e.g. https://playback.livepeer.studio/hls/PLAYBACK_ID/index.m3u8 and 302 redirect them to the address of a Catalyst server that has the stream in question. Previously, we proxied all of these requests behind the scenes, but that led to some suboptimal performance characteristics, especially around segment download latencies.
The workflow will be basically:
Handle GET https://playback.livepeer.studio/hls/PLAYBACK_ID/index.m3u8
Turn around and ask MistUtilLoad for the best place to watch the pertinent stream, like so:
302 Redirect the user to that URL https://185.102.219.180/hls/PLAYBACK_ID/index.m3u8
If no stream is present, 404
There will be some nuance in getting this right, I think... for example, we'll want to check for the X-Forwarded-Proto: https header and return an HTTPS url if present, that sort of thing.
@iameli TODO: Document why we're doing the flow this way
The text was updated successfully, but these errors were encountered:
We need to handle incoming requests for e.g.
https://playback.livepeer.studio/hls/PLAYBACK_ID/index.m3u8
and 302 redirect them to the address of a Catalyst server that has the stream in question. Previously, we proxied all of these requests behind the scenes, but that led to some suboptimal performance characteristics, especially around segment download latencies.The workflow will be basically:
GET https://playback.livepeer.studio/hls/PLAYBACK_ID/index.m3u8
https://185.102.219.180/hls/PLAYBACK_ID/index.m3u8
There will be some nuance in getting this right, I think... for example, we'll want to check for the
X-Forwarded-Proto: https
header and return an HTTPS url if present, that sort of thing.@iameli TODO: Document why we're doing the flow this way
The text was updated successfully, but these errors were encountered: