Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

paweldomasc8939a133d0d
diff --git a/conference.js b/conference.js
index 6f36a8707e..50b4a29c26 100644
--- a/conference.js
+++ b/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);