From e2761798a849aa149b54d4a2d22e969ef773e6c4 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 4 Feb 2026 20:22:54 +0000 Subject: [PATCH] Unify HLS players with Live/Replay mode toggle - Single player for both live rendering and completed HLS streams - "From Start" mode plays from beginning (replay/VOD style) - "Live Edge" mode follows rendering progress - Uses dynamic playlist endpoint for both modes - Removes duplicate VOD player code Co-Authored-By: Claude Opus 4.5 --- app/templates/runs/detail.html | 252 ++++++++++++++++++++++----------- 1 file changed, 172 insertions(+), 80 deletions(-) diff --git a/app/templates/runs/detail.html b/app/templates/runs/detail.html index 4c5e003..7bfaa18 100644 --- a/app/templates/runs/detail.html +++ b/app/templates/runs/detail.html @@ -88,18 +88,36 @@ - - {% if run.status == 'rendering' %} -
+ + {% if run.status == 'rendering' or run.ipfs_playlist_cid %} +

- - Live Preview + {% if run.status == 'rendering' %} + + Live Preview + {% else %} + + Video + {% endif %}

-
Connecting...
+
+ +
+ + +
+
Connecting...
+
- +
@@ -107,25 +125,35 @@
-
- Stream URL: /runs/{{ run.run_id }}/hls/stream.m3u8 +
+ Stream: /runs/{{ run.run_id }}/playlist.m3u8 +