mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-24 17:18:19 -04:00
Fix random volume changes
This commit is contained in:
1 parent
d481864035
commit
cf042ed83d
1 file changed
+1
-4
@@ -120,9 +120,6 @@ const Player = () => {
|
||||
|
||||
const onAudioPlay = useCallback(
|
||||
(info) => {
|
||||
if (audioInstance) {
|
||||
audioInstance.volume = playerState.volume
|
||||
}
|
||||
dispatch(currentPlaying(info))
|
||||
setStartTime(Date.now())
|
||||
if (info.duration) {
|
||||
@@ -146,7 +143,7 @@ const Player = () => {
|
||||
}
|
||||
}
|
||||
},
|
||||
[dispatch, showNotifications, audioInstance, playerState.volume]
|
||||
[dispatch, showNotifications]
|
||||
)
|
||||
|
||||
const onAudioPause = useCallback(
|
||||
|
||||
Reference in new issue
Block a user