docs(examples): bind reference video muted to state so unmute sticks

React was re-applying the static muted={true} on every re-render, instantly
re-muting the reference after a click. Bind muted to state instead.
This commit is contained in:
ukimsanov
2026-08-05 00:12:12 -07:00
parent bde03484ae
commit 407a5fd513
+1 -1
View File
@@ -97,7 +97,7 @@ export const ReplicaCompare = ({
src={reduced ? undefined : refSrc}
poster={refPoster}
autoPlay={!reduced}
muted
muted={muted}
loop={!reduced}
playsInline
preload="metadata"