From bb3cb4a6ad43378139e84e3fa3d1d2924d59ef6b Mon Sep 17 00:00:00 2001 From: jeffvli Date: Fri, 26 Dec 2025 05:24:44 -0800 Subject: [PATCH] fix mpv volume on initial startup --- src/renderer/features/player/audio-player/mpv-player.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/features/player/audio-player/mpv-player.tsx b/src/renderer/features/player/audio-player/mpv-player.tsx index f3bd85ac3..a578ce657 100644 --- a/src/renderer/features/player/audio-player/mpv-player.tsx +++ b/src/renderer/features/player/audio-player/mpv-player.tsx @@ -11,6 +11,7 @@ import { usePlayerData, usePlayerMuted, usePlayerProperties, + usePlayerStore, usePlayerVolume, } from '/@/renderer/store'; import { PlayerStatus } from '/@/shared/types/types'; @@ -108,6 +109,7 @@ export function MpvPlayer() { }, onPlayerStatus: async (properties) => { const status = properties.status; + const volume = usePlayerStore.getState().player.volume; if (audioFadeOnStatusChange) { if (status === PlayerStatus.PAUSED) { fadeAndSetStatus(volume, 0, PLAY_PAUSE_FADE_DURATION, PlayerStatus.PAUSED);