|
@@ -2179,7 +2179,7 @@ export default {
|
2179
|
2179
|
|
2180
|
2180
|
// dispose the existing presenter track and create a new
|
2181
|
2181
|
// camera track.
|
2182
|
|
- this.localPresenterVideo.dispose();
|
|
2182
|
+ this.localPresenterVideo && this.localPresenterVideo.dispose();
|
2183
|
2183
|
this.localPresenterVideo = null;
|
2184
|
2184
|
|
2185
|
2185
|
return this._createPresenterStreamEffect(height, cameraDeviceId)
|
|
@@ -2199,7 +2199,7 @@ export default {
|
2199
|
2199
|
const { height } = this.localVideo.track.getSettings();
|
2200
|
2200
|
|
2201
|
2201
|
this._updateVideoDeviceId();
|
2202
|
|
- this.localPresenterVideo.dispose();
|
|
2202
|
+ this.localPresenterVideo && this.localPresenterVideo.dispose();
|
2203
|
2203
|
this.localPresenterVideo = null;
|
2204
|
2204
|
this._createPresenterStreamEffect(height, cameraDeviceId);
|
2205
|
2205
|
|