LIVE: a YouTube API that does not load offers Try again

A blocked or slow (over 5 s) IFrame API load reads as offline, reason
`api`, so both LIVE views show "Stream is offline" with Try again, which
loads the API afresh: the loader keeps no failed load. Embedding refused
by the video's owner (errors 101 and 150) stays unavailable. Tests cover
the loader's reuse and its retry after an error or a timeout.
This commit is contained in:
Denis Groshev committed 2026-11-20 13:12:14 +01:00
1 parent 07e89a7024
commit 7b7eb2318a
5 files changed
+94 -7

No files matched your search

+3 -2
View File
@@ -2185,8 +2185,9 @@ section leaving the page removes the player, so nothing plays unseen. ON AIR
with a blinking red dot while it plays; LOADING with an amber dot while it
starts; an offline card ("Stream is offline", with Try again) when
the player reports the video ended, errored or did not start within 25 s,
which is how an off-air broadcast shows; "This stream cannot play here" when
the owner refuses embedding or the API does not load. Stepping to another
which is how an off-air broadcast shows, or when YouTube's player API does not
load (Try again loads it afresh); "This stream cannot play here" when the
owner refuses embedding. Stepping to another
stream hands a playing one over; a selection that moves to an object
without that stream, clearing it or turning the layer off removes the
player, while another entry of the same station (a module, a docked vehicle,