import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; const styles = () => ({ root : { position : 'relative', flex : '100 100 auto', height : '100%', width : '100%', display : 'flex', flexDirection : 'column', overflow : 'hidden' }, video : { flex : '100 100 auto', height : '100%', width : '100%', objectFit : 'contain', userSelect : 'none', transitionProperty : 'opacity', transitionDuration : '.15s', backgroundColor : 'rgba(0, 0, 0, 1)', '&.hidden' : { opacity : 0, transitionDuration : '0s' }, '&.loading' : { filter : 'blur(5px)' } } }); class FullView extends React.PureComponent { constructor(props) { super(props); // Latest received video track. // @type {MediaStreamTrack} this._videoTrack = null; this.video = React.createRef(); } render() { const { videoVisible, videoProfile, classes } = this.props; return (