diff --git a/src/VideoPlayer.tsx b/src/VideoPlayer.tsx index d607e85..faf4bb8 100644 --- a/src/VideoPlayer.tsx +++ b/src/VideoPlayer.tsx @@ -352,6 +352,10 @@ export const VideoPlayer = (props: VideoPlayerProps) => { // eslint-disable-next-line react-hooks/exhaustive-deps }, [showControls, loading]); + useEffect(() => { + setMuted(muted); + }, [muted]); + useEffect(() => { const newVolume = volumePosition / volumeWidth;