From cf042ed83db2e36aa69714adbdf7d24ef2bfcae2 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 22 Aug 2021 12:13:12 -0400 Subject: [PATCH] Fix random volume changes --- ui/src/audioplayer/Player.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/src/audioplayer/Player.js b/ui/src/audioplayer/Player.js index 6e7100851..23957c247 100644 --- a/ui/src/audioplayer/Player.js +++ b/ui/src/audioplayer/Player.js @@ -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(