Stop video tags autoplaying.

Properly, this time

Fixes https://github.com/vector-im/vector-web/issues/995
This commit is contained in:
Richard van der Hoff 2016-03-10 17:38:14 +00:00
parent f985232d29
commit 5e7eb3ee92

View file

@ -72,7 +72,7 @@ module.exports = React.createClass({
return (
<span className="mx_MVideoBody">
<video className="mx_MVideoBody" src={cli.mxcUrlToHttp(content.url)} alt={content.body}
controls preload={preload} autoPlay="0"
controls preload={preload} autoPlay={false}
height={height} width={width} poster={poster}>
</video>
</span>