|
|
@@ -29,7 +29,7 @@ function JitsiLocalTrack(stream, videoType,
|
|
29
|
29
|
this.dontFireRemoveEvent = false;
|
|
30
|
30
|
}.bind(this));
|
|
31
|
31
|
this.initialMSID = this.getMSID();
|
|
32
|
|
- this.inMuteOrUnmuteProcess = false;
|
|
|
32
|
+ this.inMuteOrUnmuteProgress = false;
|
|
33
|
33
|
}
|
|
34
|
34
|
|
|
35
|
35
|
JitsiLocalTrack.prototype = Object.create(JitsiTrack.prototype);
|
|
|
@@ -62,19 +62,19 @@ function createMuteUnmutePromise(track, mute)
|
|
62
|
62
|
{
|
|
63
|
63
|
return new Promise(function (resolve, reject) {
|
|
64
|
64
|
|
|
65
|
|
- if(this.inMuteOrUnmuteProcess) {
|
|
|
65
|
+ if(this.inMuteOrUnmuteProgress) {
|
|
66
|
66
|
reject(new Error(JitsiTrackErrors.TRACK_MUTE_UNMUTE_IN_PROGRESS));
|
|
67
|
67
|
return;
|
|
68
|
68
|
}
|
|
69
|
|
- this.inMuteOrUnmuteProcess = true;
|
|
|
69
|
+ this.inMuteOrUnmuteProgress = true;
|
|
70
|
70
|
|
|
71
|
71
|
this._setMute(mute,
|
|
72
|
72
|
function(){
|
|
73
|
|
- this.inMuteOrUnmuteProcess = false;
|
|
|
73
|
+ this.inMuteOrUnmuteProgress = false;
|
|
74
|
74
|
resolve();
|
|
75
|
75
|
}.bind(this),
|
|
76
|
76
|
function(status){
|
|
77
|
|
- this.inMuteOrUnmuteProcess = false;
|
|
|
77
|
+ this.inMuteOrUnmuteProgress = false;
|
|
78
|
78
|
reject(status);
|
|
79
|
79
|
}.bind(this));
|
|
80
|
80
|
}.bind(track));
|