forked from fedi/mastodon
caf5b8e975
before. In the API, attachments now can be either image, video or gifv. Gifv is to be treated like images in terms of behaviour, but are videos by file type.
22 lines
371 B
JavaScript
22 lines
371 B
JavaScript
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
|
|
|
const ExtendedVideoPlayer = React.createClass({
|
|
|
|
propTypes: {
|
|
src: React.PropTypes.string.isRequired
|
|
},
|
|
|
|
mixins: [PureRenderMixin],
|
|
|
|
render () {
|
|
return (
|
|
<div>
|
|
<video src={this.props.src} autoPlay muted loop />
|
|
</div>
|
|
);
|
|
},
|
|
|
|
});
|
|
|
|
export default ExtendedVideoPlayer;
|