We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 236ee0a commit 1a36fbfCopy full SHA for 1a36fbf
1 file changed
src/utils/player.ts
@@ -912,6 +912,10 @@ class Player {
912
console.warn("⚠️ Player not ready for seek");
913
return;
914
}
915
+ if (time < 0 || time > this.player.duration()) {
916
+ console.warn("⚠️ Invalid seek time", time);
917
+ time = Math.max(0, Math.min(time, this.player.duration()));
918
+ }
919
this.player.seek(time);
920
statusStore.currentTime = time;
921
0 commit comments