Source code for the custom Mastodon (Glitchsoc) instance on berserker.town.
https://berserker.town/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
512 B
23 lines
512 B
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
|
|
|
const ExtendedVideoPlayer = React.createClass({
|
|
|
|
propTypes: {
|
|
src: React.PropTypes.string.isRequired,
|
|
controls: React.PropTypes.bool.isRequired,
|
|
muted: React.PropTypes.bool.isRequired
|
|
},
|
|
|
|
mixins: [PureRenderMixin],
|
|
|
|
render () {
|
|
return (
|
|
<div>
|
|
<video src={this.props.src} autoPlay muted={this.props.muted} controls={this.props.controls} loop />
|
|
</div>
|
|
);
|
|
},
|
|
|
|
});
|
|
|
|
export default ExtendedVideoPlayer;
|
|
|