pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Always emit time updates when seeking to prevent subtitle freezing

Pas 328f50bb 41a58f00

+7 -2
+7 -2
src/components/player/display/base.ts
··· 350 350 ); 351 351 videoElement.addEventListener("timeupdate", () => { 352 352 const currentTime = videoElement?.currentTime ?? 0; 353 - // Only emit time if it's progressing forward or if we're seeking 353 + // Always emit time updates when seeking to prevent subtitle freezing 354 + // Also emit when progressing forward or when time changes significantly 354 355 // This prevents time from resetting to 0 during source switches 355 - if (currentTime >= lastValidTime || isSeeking) { 356 + if ( 357 + currentTime >= lastValidTime || 358 + isSeeking || 359 + Math.abs(currentTime - lastValidTime) > 0.1 360 + ) { 356 361 lastValidTime = currentTime; 357 362 emit("time", currentTime); 358 363 }