Enable recorded stream seeking

This commit is contained in:
2026-05-26 19:11:19 -07:00
parent 5e2a2e1de7
commit 8b74d25954
5 changed files with 56 additions and 13 deletions

View File

@@ -46,6 +46,8 @@ const FRAME_STARTUP_STALL_RESET_MS = 10000;
const FRAME_STALL_RESET_MS = 6000;
const PLAYBACK_RESTART_COOLDOWN_MS = 8000;
const PLAYBACK_RESTART_DELAY_MS = 750;
const METADATA_REFRESH_ATTEMPTS = 20;
const METADATA_REFRESH_INTERVAL_MS = 650;
const state = {
generation: 0,
@@ -866,7 +868,7 @@ async function seekTo(value) {
async function refreshSessionMetadata(sessionId) {
const generation = state.generation;
for (let attempt = 0; attempt < 10; attempt += 1) {
for (let attempt = 0; attempt < METADATA_REFRESH_ATTEMPTS; attempt += 1) {
if (generation !== state.generation || state.session?.id !== sessionId) {
return;
}
@@ -894,7 +896,7 @@ async function refreshSessionMetadata(sessionId) {
return;
}
await delay(650);
await delay(METADATA_REFRESH_INTERVAL_MS);
}
}

View File

@@ -286,12 +286,13 @@ canvas {
top: -1.75rem;
right: 1.1rem;
left: 1.1rem;
height: 2.2rem;
height: 2.45rem;
}
.time-badge {
position: absolute;
top: 0;
pointer-events: none;
min-width: 3.6rem;
padding: 0.22rem 0.45rem;
border: 1px solid var(--line);
@@ -318,10 +319,10 @@ canvas {
.seek-slider {
position: absolute;
right: 0;
bottom: 0.18rem;
bottom: 0;
left: 0;
width: 100%;
height: 1rem;
height: 1.35rem;
margin: 0;
appearance: none;
background: transparent;