Fixes JS error when muting video.
This commit is contained in:
parent
5baa2fae1b
commit
bca4c0882e
|
@ -1342,7 +1342,7 @@ JitsiLocalTrack.prototype._setMute = function (mute) {
|
|||
} else {
|
||||
if (mute) {
|
||||
this.dontFireRemoveEvent = true;
|
||||
this.rtc.room.removeStream(this.stream);
|
||||
this.rtc.room.removeStream(this.stream, function () {});
|
||||
RTC.stopMediaStream(this.stream);
|
||||
if(isAudio)
|
||||
this.rtc.room.setAudioMute(mute);
|
||||
|
|
|
@ -57,7 +57,7 @@ JitsiLocalTrack.prototype._setMute = function (mute) {
|
|||
} else {
|
||||
if (mute) {
|
||||
this.dontFireRemoveEvent = true;
|
||||
this.rtc.room.removeStream(this.stream);
|
||||
this.rtc.room.removeStream(this.stream, function () {});
|
||||
RTC.stopMediaStream(this.stream);
|
||||
if(isAudio)
|
||||
this.rtc.room.setAudioMute(mute);
|
||||
|
|
Loading…
Reference in New Issue