fix(conference.js): crash on undefined this.localPresenterVideo

...if camera device is changed in the settings while screen sharing.
pull/4987/head
paweldomas 5 years ago committed by Paweł Domas
parent f810483ff6
commit c8939a133d
  1. 4
      conference.js

@ -2179,7 +2179,7 @@ export default {
// dispose the existing presenter track and create a new
// camera track.
this.localPresenterVideo.dispose();
this.localPresenterVideo && this.localPresenterVideo.dispose();
this.localPresenterVideo = null;
return this._createPresenterStreamEffect(height, cameraDeviceId)
@ -2199,7 +2199,7 @@ export default {
const { height } = this.localVideo.track.getSettings();
this._updateVideoDeviceId();
this.localPresenterVideo.dispose();
this.localPresenterVideo && this.localPresenterVideo.dispose();
this.localPresenterVideo = null;
this._createPresenterStreamEffect(height, cameraDeviceId);

Loading…
Cancel
Save