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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user