mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 13:40:24 +02:00
always call autoNext, even if not used (#241)
This commit is contained in:
@@ -73,8 +73,9 @@ export const Playerbar = () => {
|
|||||||
const { autoNext } = usePlayerControls();
|
const { autoNext } = usePlayerControls();
|
||||||
|
|
||||||
const autoNextFn = useCallback(() => {
|
const autoNextFn = useCallback(() => {
|
||||||
|
const playerData = autoNext();
|
||||||
|
|
||||||
if (remote) {
|
if (remote) {
|
||||||
const playerData = autoNext();
|
|
||||||
remote.updateSong({
|
remote.updateSong({
|
||||||
currentTime: 0,
|
currentTime: 0,
|
||||||
song: playerData.current.song,
|
song: playerData.current.song,
|
||||||
|
|||||||
Reference in New Issue
Block a user