Fix video resolution display
parent
c66aec2c87
commit
2ea269ea9a
|
|
@ -8,7 +8,7 @@ import classnames from 'classnames';
|
|||
import Video from './Video';
|
||||
import Logger from '../Logger';
|
||||
|
||||
const logger = new Logger('RemoteVideo'); // eslint-disable-line no-unused-vars
|
||||
const logger = new Logger('RemoteVideo');
|
||||
|
||||
export default class RemoteVideo extends React.Component
|
||||
{
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@ export default class Video extends React.Component
|
|||
componentDidMount()
|
||||
{
|
||||
let stream = this.props.stream;
|
||||
let videoDisabled = !!this.props.videoDisabled;
|
||||
let video = this.refs.video;
|
||||
|
||||
video.srcObject = stream;
|
||||
|
|
@ -86,9 +85,6 @@ export default class Video extends React.Component
|
|||
this._showVideoResolution();
|
||||
this._videoResolutionTimer = setInterval(() =>
|
||||
{
|
||||
if (!videoDisabled)
|
||||
return;
|
||||
|
||||
this._showVideoResolution();
|
||||
}, 500);
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import Logger from './Logger';
|
|||
import utils from './utils';
|
||||
import App from './components/App';
|
||||
|
||||
const REGEXP_FRAGMENT_ROOM_ID = new RegExp('^#room-id=([0-9a-zA-Z]+)$');
|
||||
const REGEXP_FRAGMENT_ROOM_ID = new RegExp('^#room-id=([0-9a-zA-Z_\-]+)$');
|
||||
const logger = new Logger();
|
||||
|
||||
logger.debug('detected browser [name:"%s", version:%s]', browser.name, browser.version);
|
||||
|
|
|
|||
Loading…
Reference in New Issue