new enhancement (twitch): auto-reload stream on high latency - #1252
Open
BennyyyBB wants to merge 3 commits into
Open
new enhancement (twitch): auto-reload stream on high latency#1252BennyyyBB wants to merge 3 commits into
BennyyyBB wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds an optional setting that automatically reloads the page when the stream's latency to the broadcaster stays above a configurable threshold, or when the player stalls completely without any latency updates at all. (closes issue #1250)
Implementation
Auto-Reload on high latency(toggle, default off) and a latency threshold slider (default 10s)liveLatencyproperty hook (previously owned byPlayerStreamInfo.vue, only active when Video Stats was enabled) was moved toPlayerModule.vueso it always runs, independent of the Video Stats toggleliveLatencyupdate has arrived for 8s at all so it covers the case where the player freezes completely and stops reporting latency, which the threshold path alone can't catchsessionStorageso it survives the reload itself (prevents reload loops on a genuinely unstable connection)mediaPlayer.isPaused()is true, to avoid false positivesTesting
I manually tested using Chrome DevTools Network throttling (Slow 3G) to simulate sustained high latency and full stalls:
(no exponential backoff yet, so on a persistently bad connection, this could reload every 30s indefinitely + slider bounds (3–60s) are open to adjustment)
Types of changes
Checklist