alt is not valid on video element

This commit is contained in:
Will Hunt 2020-10-23 16:42:23 +01:00
parent 7164284bb6
commit e5228e2795

View file

@ -215,7 +215,7 @@ export default class MVideoBody extends React.PureComponent<IProps, IState> {
} }
return ( return (
<span className="mx_MVideoBody"> <span className="mx_MVideoBody">
<video className="mx_MVideoBody" src={contentUrl} alt={content.body} <video className="mx_MVideoBody" src={contentUrl} title={content.body}
controls preload={preload} muted={autoplay} autoPlay={autoplay} controls preload={preload} muted={autoplay} autoPlay={autoplay}
height={height} width={width} poster={poster} onPlay={this._videoOnPlay.bind(this)}> height={height} width={width} poster={poster} onPlay={this._videoOnPlay.bind(this)}>
</video> </video>