algora-io / tv

Open source Twitch for developers
https://algora.tv
Other
1.02k stars 59 forks source link

Delay toggling live until full segment is ready #97

Closed lastcanal closed 1 month ago

lastcanal commented 1 month ago

Membrane seems to be sending track_playable when the first part is ready, not when the first full segment is ready. This seems to cause Vidstack to stall when the 'just went live' popup is clicked too quickly.

This change simply waits @segment_duration seconds before toggling live.

zcesur commented 1 month ago

Good catch!