diff --git a/src/components/player/NowPlayingMiniView.tsx b/src/components/player/NowPlayingMiniView.tsx index 89a24da..36905d7 100644 --- a/src/components/player/NowPlayingMiniView.tsx +++ b/src/components/player/NowPlayingMiniView.tsx @@ -128,7 +128,9 @@ const NowPlayingMiniView = () => { }) ); dispatch(setIsDragging(false)); - dispatch(fixPlayer2Index()); + if (playQueue.currentPlayer === 1) { + dispatch(fixPlayer2Index()); + } } }; diff --git a/src/components/player/NowPlayingView.tsx b/src/components/player/NowPlayingView.tsx index 6f9bda8..d213e1c 100644 --- a/src/components/player/NowPlayingView.tsx +++ b/src/components/player/NowPlayingView.tsx @@ -131,7 +131,9 @@ const NowPlayingView = () => { }) ); dispatch(setIsDragging(false)); - dispatch(fixPlayer2Index()); + if (playQueue.currentPlayer === 1) { + dispatch(fixPlayer2Index()); + } } }; diff --git a/src/components/player/Player.tsx b/src/components/player/Player.tsx index b900e8c..ff0d1ec 100644 --- a/src/components/player/Player.tsx +++ b/src/components/player/Player.tsx @@ -518,7 +518,7 @@ const Player = ({ currentEntryList, children }: any, ref: any) => { console.log('player error', e); player1Ref.current.audioEl.current.src = './components/player/dummy.mp3'; - // player1Ref.current.audioEl.current.src = getSrc1(); + player1Ref.current.audioEl.current.src = getSrc1(); }} crossOrigin="anonymous" /> @@ -540,7 +540,7 @@ const Player = ({ currentEntryList, children }: any, ref: any) => { console.log('player error', e); player2Ref.current.audioEl.current.src = './components/player/dummy.mp3'; - // player2Ref.current.audioEl.current.src = getSrc2(); + player2Ref.current.audioEl.current.src = getSrc2(); }} crossOrigin="anonymous" />