crysalead-js / dom-layer

Virtual DOM implementation.
MIT License
30 stars 1 forks source link

audio/video #34

Closed ghost closed 9 years ago

ghost commented 9 years ago

I open this ticket so you can check this out: https://github.com/facebook/react/issues/3010

jails commented 9 years ago

It shouldn't be an issue if your <audio>/<video> tag has a key defined (so it'll be moved instead of recreated on updates). And you set the default mute value has an attribute like the following:

<video controls="controls" mute="mute">

so the mute state would stay perserved if you don't play with muted in props. Otherwise you will need to create you own Audio or Video virtual node if you need a full control on this uncontrollable property by customizing the patch() method.