|
@ -63,6 +63,7 @@ const usePlayerControls = ( |
|
|
dispatch(fixPlayer2Index()); |
|
|
dispatch(fixPlayer2Index()); |
|
|
} else if (currentPlayer === 1) { |
|
|
} else if (currentPlayer === 1) { |
|
|
playersRef.current.player1.audioEl.current.currentTime = 0; |
|
|
playersRef.current.player1.audioEl.current.currentTime = 0; |
|
|
|
|
|
playersRef.current.player1.audioEl.current.volume = playQueue.volume; |
|
|
|
|
|
|
|
|
// Reset the alt player if reset during fade
|
|
|
// Reset the alt player if reset during fade
|
|
|
playersRef.current.player2.audioEl.current.currentTime = 0; |
|
|
playersRef.current.player2.audioEl.current.currentTime = 0; |
|
@ -83,6 +84,7 @@ const usePlayerControls = ( |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
playersRef.current.player2.audioEl.current.currentTime = 0; |
|
|
playersRef.current.player2.audioEl.current.currentTime = 0; |
|
|
|
|
|
playersRef.current.player2.audioEl.current.volume = playQueue.volume; |
|
|
|
|
|
|
|
|
// Reset the alt player if reset during fade
|
|
|
// Reset the alt player if reset during fade
|
|
|
playersRef.current.player1.audioEl.current.currentTime = 0; |
|
|
playersRef.current.player1.audioEl.current.currentTime = 0; |
|
|