diff --git a/src/renderer/features/player/audio-player/engine/mpv-player-engine.tsx b/src/renderer/features/player/audio-player/engine/mpv-player-engine.tsx index 327acacdb..71a080bbf 100644 --- a/src/renderer/features/player/audio-player/engine/mpv-player-engine.tsx +++ b/src/renderer/features/player/audio-player/engine/mpv-player-engine.tsx @@ -89,6 +89,7 @@ export const MpvPlayerEngine = (props: MpvPlayerEngineProps) => { const properties: Record = { ...getMpvProperties(mpvProperties), speed: speed, + volume: volume, }; await mpvPlayer?.initialize({ @@ -96,10 +97,6 @@ export const MpvPlayerEngine = (props: MpvPlayerEngineProps) => { properties, }); - // Set volume from the current app volume - mpvPlayer?.volume(volume); - isInitializedRef.current = true; - // After initialization, populate the queue if currentSrc is available // Don't override queue if radio is active const radioState = useRadioStore.getState(); @@ -118,6 +115,8 @@ export const MpvPlayerEngine = (props: MpvPlayerEngineProps) => { hasPopulatedQueueRef.current = true; } } + + isInitializedRef.current = true; }; initializeMpv(); diff --git a/src/renderer/features/radio/components/create-radio-station-form.tsx b/src/renderer/features/radio/components/create-radio-station-form.tsx index fa3d0688c..d1e833e0b 100644 --- a/src/renderer/features/radio/components/create-radio-station-form.tsx +++ b/src/renderer/features/radio/components/create-radio-station-form.tsx @@ -111,4 +111,3 @@ export const openCreateRadioStationModal = ( title: t('action.createRadioStation', { postProcess: 'titleCase' }) as string, }); }; - diff --git a/src/renderer/features/radio/components/radio-list-header.tsx b/src/renderer/features/radio/components/radio-list-header.tsx index bc500291c..172252e76 100644 --- a/src/renderer/features/radio/components/radio-list-header.tsx +++ b/src/renderer/features/radio/components/radio-list-header.tsx @@ -38,4 +38,3 @@ export const RadioListHeader = ({ title }: RadioListHeaderProps) => { ); }; - diff --git a/src/renderer/features/radio/routes/radio-list-route.tsx b/src/renderer/features/radio/routes/radio-list-route.tsx index 0f0daf92a..dc1e06cbe 100644 --- a/src/renderer/features/radio/routes/radio-list-route.tsx +++ b/src/renderer/features/radio/routes/radio-list-route.tsx @@ -40,4 +40,3 @@ const RadioListRouteWithBoundary = () => { }; export default RadioListRouteWithBoundary; -