mirror of
https://github.com/navidrome/navidrome.git
synced 2026-04-03 06:41:01 +00:00
Restore volume when playing a song...
... or continuing to play a paused one
This commit is contained in:
parent
cbab0eed5a
commit
3ed82ebed4
@ -113,6 +113,9 @@ const Player = () => {
|
||||
|
||||
const onAudioPlay = useCallback(
|
||||
(info) => {
|
||||
if (audioInstance) {
|
||||
audioInstance.volume = playerState.volume
|
||||
}
|
||||
dispatch(currentPlaying(info))
|
||||
setStartTime(Date.now())
|
||||
if (info.duration) {
|
||||
@ -136,7 +139,7 @@ const Player = () => {
|
||||
}
|
||||
}
|
||||
},
|
||||
[dispatch, showNotifications]
|
||||
[dispatch, showNotifications, audioInstance, playerState.volume]
|
||||
)
|
||||
|
||||
const onAudioPause = useCallback(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user