LIVE loads YouTube only after Play, and stops when its view is hidden

Selecting a station no longer builds the player: the LIVE section and the
Cockpit's LIVE page show a poster with Play under the line that YouTube sees
the viewer's IP address, as SECURITY.md asks of third-party media. The player
goes when the section collapses, Context collapses or closes, the Cockpit
leaves its LIVE page, or the Cockpit is entered or left, so nothing plays
unseen. A selection that moves straight on to another entry of the same
station (the Cockpit stepping between views) keeps the player instead of
rebuilding it. SECURITY.md also lists the ISS telemetry relay.
This commit is contained in:
Denis Groshev committed 2026-11-17 16:25:04 +01:00
1 parent 71d57481b7
commit 1e2332eeb6
14 files changed
+314 -108

No files matched your search

+3 -3
View File
@@ -65,9 +65,9 @@ export function youtubeWatchUrl(videoId) {
/**
* The parameters the live player is created with: starts on creation (the
* player is built as soon as a subject with a stream is selected), muted so
* the browser lets it, inline on phones, no related videos, and the page's
* origin so the player API may be spoken to.
* player is built only when the viewer presses Play), muted so the browser
* lets it start once the player API has loaded, inline on phones, no related
* videos, and the page's origin so the player API may be spoken to.
* @param {string} origin The page's origin.
* @returns {Record<string, string|number>}
*/