|
|
@@ -13,7 +13,7 @@ function SessionBase(connection, sid) {
|
|
13
|
13
|
* in response to a user command in contrast to an automatic decision made
|
|
14
|
14
|
* by the application logic.
|
|
15
|
15
|
*/
|
|
16
|
|
- this.muteByUser = true;
|
|
|
16
|
+ this.videoMuteByUser = false;
|
|
17
|
17
|
}
|
|
18
|
18
|
|
|
19
|
19
|
|
|
|
@@ -285,8 +285,8 @@ SessionBase.prototype.setVideoMute = function (mute, callback, options) {
|
|
285
|
285
|
// The user's command to mute the (local) video takes precedence over any
|
|
286
|
286
|
// automatic decision made by the application logic.
|
|
287
|
287
|
if (byUser) {
|
|
288
|
|
- this.muteByUser = mute;
|
|
289
|
|
- } else if (this.muteByUser) {
|
|
|
288
|
+ this.videoMuteByUser = mute;
|
|
|
289
|
+ } else if (this.videoMuteByUser) {
|
|
290
|
290
|
return;
|
|
291
|
291
|
}
|
|
292
|
292
|
if (mute == this.isVideoMute())
|