2bc4 / twitch-hls-client

Minimal CLI client for watching/recording Twitch streams
GNU General Public License v3.0
22 stars 5 forks source link

hls: Add `warp` query param #21

Closed brian6932 closed 7 months ago

brian6932 commented 7 months ago

Uses QUIC and is lower latency due to that, doesn't seem to have any downside, adless when proxied https://www.ietf.org/archive/id/draft-lcurley-warp-00.html

2bc4 commented 7 months ago

Seems like QUIC would need to be implemented to get lower latency. When warp=true is set the master playlist has a new optional tag WARP-URL=quic-transport://[...] which you would then use to establish a QUIC connection.

brian6932 commented 7 months ago

Ah I see, so the player and/or whatever is reading the bitstream would have to have their own support for this, I was thinking that it would be like some flag that toggles HTTP/3 instead of HTTP/2 or something in their backend. In any case, I wasn't aware, if this isn't in scope or unwanted, feel free to close.

2bc4 commented 7 months ago

No worries. Actually it could be useful to enable for --passthrough so I'll merge this. Implementing QUIC seems daunting and the libs are huge so for now that's out of scope.