Fix traffic camera dashboard HLS buffering stalls#2
Draft
HornLakeFire wants to merge 2 commits into
Draft
Conversation
The MDOT streams use 10-second segments with only a 3-segment live playlist. The previous low-latency HLS.js settings (liveSyncDuration: 2, backBufferLength: 0) left almost no buffer ahead of playback, causing rebuffering every few seconds. Switch to stable live settings (liveSyncDurationCount: 3), restore back buffer, stagger stream startup, and avoid Safari live-edge seeking. Co-authored-by: jeremy <jeremyepowell@hotmail.com>
Fix black screen caused by unquoted stream URLs (JavaScript syntax error). Uses the same stable HLS settings as the Hwy 301 dashboard. Co-authored-by: jeremy <jeremyepowell@hotmail.com>
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.
Summary
Fixes recurring 3–5 second buffering stalls on traffic camera dashboards and adds the Goodman Rd & Horn Lake Rd intersection page.
Root cause (buffering)
The MDOT HLS streams use 10-second segments with only ~3 segments in the live playlist (~30 seconds total). Low-latency HLS.js settings left almost no buffer ahead of playback, causing stalls every few seconds.
Root cause (black screen on Goodman dashboard)
The stream URLs were missing quotes, which is a JavaScript syntax error — the entire script fails to run:
Changes
traffic-cameras.html— Hwy 301 & Goodman Rd with stable HLS settingsgoodman-horn-lake-cameras.html— Goodman Rd & Horn Lake Rd with quoted URLs and same HLS settings/traffic-cameras,/goodman-horn-lake-camerashls.jsto v1.5.17, stagger stream startup, pre-buffer before showing videoTesting