|
|
@@ -41,7 +41,6 @@ function RemoteVideo(user, VideoLayout, emitter) {
|
|
41
|
41
|
this.videoSpanId = `participant_${this.id}`;
|
|
42
|
42
|
SmallVideo.call(this, VideoLayout);
|
|
43
|
43
|
this._audioStreamElement = null;
|
|
44
|
|
- this.hasRemoteVideoMenu = false;
|
|
45
|
44
|
this._supportsRemoteControl = false;
|
|
46
|
45
|
this.statsPopoverLocation = interfaceConfig.VERTICAL_FILMSTRIP
|
|
47
|
46
|
? 'left bottom' : 'top center';
|
|
|
@@ -298,9 +297,11 @@ RemoteVideo.prototype._setAudioVolume = function(newVal) {
|
|
298
|
297
|
*
|
|
299
|
298
|
* @param isMuted the new muted state to update to
|
|
300
|
299
|
*/
|
|
301
|
|
-RemoteVideo.prototype.updateRemoteVideoMenu = function(
|
|
302
|
|
- isMuted = this.isAudioMuted) {
|
|
303
|
|
- this.isAudioMuted = isMuted;
|
|
|
300
|
+RemoteVideo.prototype.updateRemoteVideoMenu = function(isMuted) {
|
|
|
301
|
+
|
|
|
302
|
+ if (typeof isMuted !== 'undefined') {
|
|
|
303
|
+ this.isAudioMuted = isMuted;
|
|
|
304
|
+ }
|
|
304
|
305
|
|
|
305
|
306
|
this._generatePopupContent();
|
|
306
|
307
|
};
|
|
|
@@ -343,8 +344,6 @@ RemoteVideo.prototype.addRemoteVideoMenu = function() {
|
|
343
|
344
|
}
|
|
344
|
345
|
|
|
345
|
346
|
this._generatePopupContent();
|
|
346
|
|
-
|
|
347
|
|
- this.hasRemoteVideoMenu = true;
|
|
348
|
347
|
};
|
|
349
|
348
|
|
|
350
|
349
|
/**
|
|
|
@@ -641,7 +640,6 @@ RemoteVideo.prototype.removeRemoteVideoMenu = function() {
|
|
641
|
640
|
if (menuSpan.length) {
|
|
642
|
641
|
ReactDOM.unmountComponentAtNode(menuSpan.get(0));
|
|
643
|
642
|
menuSpan.remove();
|
|
644
|
|
- this.hasRemoteVideoMenu = false;
|
|
645
|
643
|
}
|
|
646
|
644
|
};
|
|
647
|
645
|
|