mirror of
https://github.com/imsyy/SPlayer.git
synced 2025-11-25 03:14:57 +08:00
@@ -912,6 +912,10 @@ class Player {
|
||||
console.warn("⚠️ Player not ready for seek");
|
||||
return;
|
||||
}
|
||||
if (time < 0 || time > this.player.duration()) {
|
||||
console.warn("⚠️ Invalid seek time", time);
|
||||
time = Math.max(0, Math.min(time, this.player.duration()));
|
||||
}
|
||||
this.player.seek(time);
|
||||
statusStore.currentTime = time;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user