-
-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
Version
"react-jinke-music-player": "^4.24.2",
"react": "^18.2.0",
Description
Getting this error when i destory a player using the (X) cross button and then play a new song
const MusicPlayer = ({ audioLists = [], currentSongIndex = "" }) => {
const playIndex = audioLists.findIndex(
(song) => song.id === currentSongIndex
);
return (
<ReactJkMusicPlayer
audioLists={audioLists ?? []}
mode="full"
theme="dark"
autoPlay={true}
toggleMode={false}
showThemeSwitch={false}
showDownload={false}
showReload={false}
playIndex={playIndex ?? 0}
showDestroy={true}
/>
);
};
Expected Behavior
It should play the new song
Current Behavior
osigroove
Metadata
Metadata
Assignees
Labels
No labels


