import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import * as appPropTypes from '../appPropTypes'; import EditableInput from '../Controls/EditableInput'; export default class PeerView extends React.Component { constructor(props) { super(props); this.state = { volume : 0, // Integer from 0 to 10., videoWidth : null, videoHeight : null }; // Latest received video track. // @type {MediaStreamTrack} this._audioTrack = null; // Latest received video track. // @type {MediaStreamTrack} this._videoTrack = null; // Periodic timer for showing video resolution. this._videoResolutionTimer = null; } render() { const { isMe, peer, volume, advancedMode, videoVisible, videoProfile, audioCodec, videoCodec, onChangeDisplayName } = this.props; const { videoWidth, videoHeight } = this.state; return (

{audioCodec}

{videoCodec} {videoProfile}

{videoWidth}x{videoHeight}

onChangeDisplayName(displayName)} /> {peer.displayName}
{peer.device.name} {Math.floor(peer.device.version) || null}