chore: brand icon and title by default
This commit is contained in:
1 parent
8e61dc111c
commit
b4fcbd38ba
17 files changed
+1254
-213
No files matched your search
@@ -192,6 +192,19 @@ class StreamService:
|
||||
stream = await self.get_stream_by_key(stream_key)
|
||||
if not stream:
|
||||
return {"lines": [], "qualities": [], "multicast_available": False, "selected_node": None}
|
||||
# Live HLS lines only exist while the programme is on air. Before it starts
|
||||
# nothing has been published to MediaMTX, and once it has ended the
|
||||
# playlists under /hls/<key> are stale or gone. Handing those URLs back for
|
||||
# a pending or ended programme is what made the replay watch API carry live
|
||||
# HLS data: the viewer page then showed a dead line/quality picker instead
|
||||
# of the recorded file it was actually meant to play.
|
||||
if stream.status != StreamStatus.live:
|
||||
return {
|
||||
"lines": [],
|
||||
"qualities": [],
|
||||
"multicast_available": multicast_detector.is_available(),
|
||||
"selected_node": None,
|
||||
}
|
||||
qualities = self.watch_renditions(stream)
|
||||
best_node = lb.select_best_node(client_ip)
|
||||
if not best_node:
|
||||
|
||||
Reference in new issue
Block a user