Fixes audio mute.
This commit is contained in:
parent
f11c3b94ed
commit
6235ff163e
|
@ -22,7 +22,7 @@
|
|||
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
|
||||
<script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
|
||||
<script src="interface_config.js?v=5"></script>
|
||||
<script src="libs/app.bundle.js?v=92"></script>
|
||||
<script src="libs/app.bundle.js?v=93"></script>
|
||||
<script src="analytics.js?v=1"></script><!-- google analytics plugin -->
|
||||
<link rel="stylesheet" href="css/font.css?v=7"/>
|
||||
<link rel="stylesheet" href="css/toastr.css?v=1">
|
||||
|
|
|
@ -7902,7 +7902,7 @@ SmallVideo.prototype.hideIndicator = function () {
|
|||
SmallVideo.prototype.showAudioIndicator = function(isMuted) {
|
||||
var audioMutedSpan = $('#' + this.videoSpanId + '>span.audioMuted');
|
||||
|
||||
if (isMuted === 'false') {
|
||||
if (!isMuted) {
|
||||
if (audioMutedSpan.length > 0) {
|
||||
audioMutedSpan.popover('hide');
|
||||
audioMutedSpan.remove();
|
||||
|
@ -8456,7 +8456,7 @@ var VideoLayout = (function (my) {
|
|||
* @param {boolean} isMuted
|
||||
*/
|
||||
my.showLocalAudioIndicator = function(isMuted) {
|
||||
localVideoThumbnail.showAudioIndicator(isMuted.toString());
|
||||
localVideoThumbnail.showAudioIndicator(isMuted);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -14988,7 +14988,6 @@ module.exports = function(XMPP, eventEmitter) {
|
|||
if (audioMuted.length) {
|
||||
eventEmitter.emit(XMPPEvents.AUDIO_MUTED,
|
||||
from, (audioMuted.text() === "true"));
|
||||
$(document).trigger('audiomuted.muc', [from, ]);
|
||||
}
|
||||
|
||||
// Parse video info tag.
|
||||
|
@ -14996,7 +14995,6 @@ module.exports = function(XMPP, eventEmitter) {
|
|||
if (videoMuted.length) {
|
||||
eventEmitter.emit(XMPPEvents.VIDEO_MUTED,
|
||||
from, (videoMuted.text() === "true"));
|
||||
$(document).trigger('videomuted.muc', [from, ]);
|
||||
}
|
||||
|
||||
var startMuted = $(pres).find('>startmuted');
|
||||
|
|
|
@ -126,7 +126,7 @@ SmallVideo.prototype.hideIndicator = function () {
|
|||
SmallVideo.prototype.showAudioIndicator = function(isMuted) {
|
||||
var audioMutedSpan = $('#' + this.videoSpanId + '>span.audioMuted');
|
||||
|
||||
if (isMuted === 'false') {
|
||||
if (!isMuted) {
|
||||
if (audioMutedSpan.length > 0) {
|
||||
audioMutedSpan.popover('hide');
|
||||
audioMutedSpan.remove();
|
||||
|
|
|
@ -328,7 +328,7 @@ var VideoLayout = (function (my) {
|
|||
* @param {boolean} isMuted
|
||||
*/
|
||||
my.showLocalAudioIndicator = function(isMuted) {
|
||||
localVideoThumbnail.showAudioIndicator(isMuted.toString());
|
||||
localVideoThumbnail.showAudioIndicator(isMuted);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -145,7 +145,6 @@ module.exports = function(XMPP, eventEmitter) {
|
|||
if (audioMuted.length) {
|
||||
eventEmitter.emit(XMPPEvents.AUDIO_MUTED,
|
||||
from, (audioMuted.text() === "true"));
|
||||
$(document).trigger('audiomuted.muc', [from, ]);
|
||||
}
|
||||
|
||||
// Parse video info tag.
|
||||
|
@ -153,7 +152,6 @@ module.exports = function(XMPP, eventEmitter) {
|
|||
if (videoMuted.length) {
|
||||
eventEmitter.emit(XMPPEvents.VIDEO_MUTED,
|
||||
from, (videoMuted.text() === "true"));
|
||||
$(document).trigger('videomuted.muc', [from, ]);
|
||||
}
|
||||
|
||||
var startMuted = $(pres).find('>startmuted');
|
||||
|
|
Loading…
Reference in New Issue