fix: player/audio route not able to interact with audioPlayer

This commit is contained in:
Prayag Prajapati committed 2024-11-17 11:50:16 +05:30
1 parent 60895ceecf
commit b0e08ce4bd
10 files changed
+338 -120

No files matched your search

@@ -72,7 +72,9 @@ const AudioPlayer = () => {
// await audioRef.current.play();
// setLoading(false);
// });
// setAudioRef(audioRef);
// Set the audio ref in the store to allow for global control
setAudioRef(audioRef);
}
}, [url, tracks?.[currentTrack]?.Id]);
@@ -132,7 +134,7 @@ const AudioPlayer = () => {
</div>
</div>
),
[tracks?.[currentTrack]?.Id, currentTrack, api.configuration],
[tracks?.[currentTrack]?.Id, currentTrack, api?.configuration],
);
const controls = useMemo(