global player
This commit is contained in:
@@ -271,6 +271,14 @@ const PlayerProvider = ({ children }) => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (player?.playing) {
|
||||||
|
await player.pause?.();
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
setError(err);
|
||||||
|
}
|
||||||
|
|
||||||
autoPlayRef.current = shouldAutoPlay;
|
autoPlayRef.current = shouldAutoPlay;
|
||||||
pendingSeekSecondsRef.current = targetSeconds > 0 ? targetSeconds : null;
|
pendingSeekSecondsRef.current = targetSeconds > 0 ? targetSeconds : null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user