mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 11:26:02 +00:00
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:
@@ -97,7 +97,7 @@ export const ReplicaCompare = ({
|
||||
src={reduced ? undefined : refSrc}
|
||||
poster={refPoster}
|
||||
autoPlay={!reduced}
|
||||
muted
|
||||
muted={muted}
|
||||
loop={!reduced}
|
||||
playsInline
|
||||
preload="metadata"
|
||||
|
||||
Reference in New Issue
Block a user