Enable recorded stream seeking
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user