diff --git a/src/VideoPlayer.tsx b/src/VideoPlayer.tsx index 1874011..e7b291b 100644 --- a/src/VideoPlayer.tsx +++ b/src/VideoPlayer.tsx @@ -422,6 +422,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;