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.

21 lines
640 B

  1. import ImmutablePropTypes from 'react-immutable-proptypes';
  2. import PureRenderMixin from 'react-addons-pure-render-mixin';
  3. const VideoPlayer = React.createClass({
  4. propTypes: {
  5. media: ImmutablePropTypes.map.isRequired
  6. },
  7. mixins: [PureRenderMixin],
  8. render () {
  9. return (
  10. <div style={{ cursor: 'default', marginTop: '8px', overflow: 'hidden', width: '196px', height: '110px', boxSizing: 'border-box', background: '#000' }}>
  11. <video src={this.props.media.get('url')} autoPlay='true' loop={true} muted={true} style={{ width: '100%', height: '100%' }} />
  12. </div>
  13. );
  14. }
  15. });
  16. export default VideoPlayer;