content: import React from 'react';
  import PropTypes from 'prop-types';
  import classNames from 'classnames';
  
  import styles from './styles.css';
  
  export default function Video({src, srcObject, audioMuted}) {
    // Need autoPlay to start the video automagically
  
    function getEl(el) {
      if (el && srcObject) {
        el.srcObject = srcObject;
      }
    }
  
    return (
      <video
        autoPlay
        className={classNames(styles.video)}
        muted={audioMuted}
        ref={getEl}
        src={src}
      />
    );
  }
  
  Video.propTypes = {
    audioMuted: PropTypes.bool,
    src: PropTypes.string,
    srcObject: PropTypes.object
  };
  