fix(conference.js): crash on undefined this.localPresenterVideo
...if camera device is changed in the settings while screen sharing.
This commit is contained in:
parent
f810483ff6
commit
c8939a133d
|
@ -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…
Reference in New Issue