record playback

This commit is contained in:
2025-10-01 17:10:40 +02:00
parent 1fd63c254d
commit f78dc64ec9
4 changed files with 714 additions and 72 deletions
+4 -4
View File
@@ -35,10 +35,10 @@ const SongReady = () => {
1: { pos: 0, dur: 0 },
});
const player0 = useAudioPlayer(
musicUrls[0] ? { uri: musicUrls[0] } : undefined,
musicUrls[0] ? { uri: musicUrls[0] } : undefined
);
const player1 = useAudioPlayer(
musicUrls[1] ? { uri: musicUrls[1] } : undefined,
musicUrls[1] ? { uri: musicUrls[1] } : undefined
);
const wasPlayingBeforeSeek = useRef({ 0: false, 1: false });
@@ -146,7 +146,7 @@ const SongReady = () => {
player1?.pause?.();
} catch {}
};
}, [player0, player1]),
}, [player0, player1])
);
useEffect(() => {
@@ -230,7 +230,7 @@ const SongReady = () => {
} catch (e) {
console.log(
"SongReady pause on seek start",
e?.message,
e?.message
);
}
}}