|
|
@@ -223,6 +223,11 @@ JitsiConference.prototype._fireMuteChangeEvent = function (track) {
|
|
223
|
223
|
* @param track the JitsiLocalTrack object.
|
|
224
|
224
|
*/
|
|
225
|
225
|
JitsiConference.prototype.removeTrack = function (track) {
|
|
|
226
|
+ if(!this.room){
|
|
|
227
|
+ if(this.rtc)
|
|
|
228
|
+ this.rtc.removeLocalStream(track);
|
|
|
229
|
+ return;
|
|
|
230
|
+ }
|
|
226
|
231
|
this.room.removeStream(track.getOriginalStream(), function(){
|
|
227
|
232
|
this.rtc.removeLocalStream(track);
|
|
228
|
233
|
this.eventEmitter.emit(JitsiConferenceEvents.TRACK_REMOVED, track);
|