Skip to content

Restore the red live indicator in the navbar - #1196

Merged
CGBassPlayer merged 1 commit into
JupiterBroadcasting:developfrom
CGBassPlayer:fix/nav-live-indicator
Nov 25, 2026
Merged

CGBassPlayer merged 1 commit into
JupiterBroadcasting:developfrom
CGBassPlayer:fix/nav-live-indicator

Conversation

@CGBassPlayer

@CGBassPlayer CGBassPlayer commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Shoutout @ChanceM for the original js snippet!

The navbar live highlight relied on the jupiter.tube PeerTube API, which is gone. It now checks the HLS playlist (params.live.video_url) directly.

  • New live-indicator.js, bundled into global.js so it runs on every page. header.html passes the playlist URL via data-live-url on #mainnavigation.
  • Adds is-live when the playlist contains #EXTM3U and no #EXT-X-ENDLIST; the existing sass turns #livebutton and the burger dot red.
  • Removes the dead PeerTube jb-live.js and live/jb-tube.html; updates the e2e SAFE path regex.
  • e2e: live playlist turns the indicator on, a playlist with #EXT-X-ENDLIST does not.

Tested: live and navigation e2e on chromium against the dev server (stubbed playlist), plus confirmed working against the real live stream by a tester.

/live.json and /live.md are unchanged: a static build can't know whether the show is live. This is something I would like to figure out how to solve in the future.

Screenshots

Desktop Live

live-desktop

Mobile Live

live-mobile

Offline

off-desktop

@CGBassPlayer
CGBassPlayer merged commit a28a965 into JupiterBroadcasting:develop Nov 25, 2026
1 of 2 checks passed
@CGBassPlayer
CGBassPlayer deleted the fix/nav-live-indicator branch November 28, 2026 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant