From da251a77ef17e894ed2190dbc4ae27bcbdd839e3 Mon Sep 17 00:00:00 2001 From: Taya Leutina Date: Wed, 17 Sep 2025 15:22:17 +0300 Subject: [PATCH] fix(Video): set muted attribute in HTML of DefaultVideo --- src/components/DefaultVideo/DefaultVideo.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/DefaultVideo/DefaultVideo.tsx b/src/components/DefaultVideo/DefaultVideo.tsx index c01fd79e8..7145045ee 100644 --- a/src/components/DefaultVideo/DefaultVideo.tsx +++ b/src/components/DefaultVideo/DefaultVideo.tsx @@ -61,6 +61,15 @@ export const DefaultVideo = React.forwardRef { + const videoElement = videoRef.current; + + if (videoElement && initiallyMuted) { + videoElement.defaultMuted = true; + } + }, [videoRef, initiallyMuted]); + const onPlayToggle = React.useCallback(() => { setIsPaused((value) => { if (value) {