global player

This commit is contained in:
2025-10-07 09:56:08 +02:00
parent f796d91267
commit c51176d498
+8
View File
@@ -271,6 +271,14 @@ const PlayerProvider = ({ children }) => {
return;
}
try {
if (player?.playing) {
await player.pause?.();
}
} catch (err) {
setError(err);
}
autoPlayRef.current = shouldAutoPlay;
pendingSeekSecondsRef.current = targetSeconds > 0 ? targetSeconds : null;