diff --git a/src/contexts/PlayStateContext.jsx b/src/contexts/PlayStateContext.jsx index b736d43..c88a806 100644 --- a/src/contexts/PlayStateContext.jsx +++ b/src/contexts/PlayStateContext.jsx @@ -80,7 +80,11 @@ export const PlayStateProvider = ({children}) => { } //console.log(playerTime + performance.now() - performanceNowRef.current); return playerTime + performance.now() - performanceNowRef.current; - }, [playing]); + }, [playing]); + + useEffect(() => { + playerRef.current.volume = volume; + }, []); return (