diff --git a/app/lib/components/Peer.jsx b/app/lib/components/Peer.jsx index 61ed633..66536eb 100644 --- a/app/lib/components/Peer.jsx +++ b/app/lib/components/Peer.jsx @@ -2,13 +2,15 @@ import React from 'react'; import { connect } from 'react-redux'; import * as appPropTypes from './appPropTypes'; import PeerView from './PeerView'; +import PeerScreenView from './PeerScreenView'; const Peer = (props) => { const { peer, micConsumer, - webcamConsumer + webcamConsumer, + screenConsumer } = props; const micEnabled = ( @@ -23,49 +25,77 @@ const Peer = (props) => !webcamConsumer.remotelyPaused ); + const screenVisible = ( + Boolean(screenConsumer) && + !screenConsumer.locallyPaused && + !screenConsumer.remotelyPaused + ); + let videoProfile; if (webcamConsumer) videoProfile = webcamConsumer.profile; - return ( -
incompatible video
+ ); + } + else + { + return ( +incompatible video
+