import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import * as appPropTypes from './appPropTypes'; import * as requestActions from '../redux/requestActions'; import * as stateActions from '../redux/stateActions'; import PeerView from './PeerView'; import ScreenView from './ScreenView'; class Peer extends Component { state = { controlsVisible : false }; handleMouseOver = () => { this.setState({ controlsVisible : true }); }; handleMouseOut = () => { this.setState({ controlsVisible : false }); }; render() { const { advancedMode, peer, micConsumer, webcamConsumer, screenConsumer, onMuteMic, onUnmuteMic, toggleConsumerFullscreen, toggleConsumerWindow, style, windowConsumer } = this.props; const micEnabled = ( Boolean(micConsumer) && !micConsumer.locallyPaused && !micConsumer.remotelyPaused ); const videoVisible = ( Boolean(webcamConsumer) && !webcamConsumer.locallyPaused && !webcamConsumer.remotelyPaused ); const screenVisible = ( Boolean(screenConsumer) && !screenConsumer.locallyPaused && !screenConsumer.remotelyPaused ); let videoProfile; if (webcamConsumer) videoProfile = webcamConsumer.profile; let screenProfile; if (screenConsumer) screenProfile = screenConsumer.profile; return (
incompatible video
this video is paused