global player
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user