Fixes issue with video mute.
This commit is contained in:
parent
e6fbb0934e
commit
0696fb2c5a
|
@ -31,9 +31,9 @@
|
|||
<script src="service/RTC/MediaStreamTypes.js?v=1"></script>
|
||||
<script src="libs/modules/simulcast.bundle.js?v=2"></script>
|
||||
<script src="libs/modules/connectionquality.bundle.js?v=1"></script>
|
||||
<script src="libs/modules/UI.bundle.js?v=3"></script>
|
||||
<script src="libs/modules/UI.bundle.js?v=4"></script>
|
||||
<script src="libs/modules/statistics.bundle.js?v=1"></script>
|
||||
<script src="libs/modules/RTC.bundle.js?v=2"></script>
|
||||
<script src="libs/modules/RTC.bundle.js?v=3"></script>
|
||||
<script src="muc.js?v=17"></script><!-- simple MUC library -->
|
||||
<script src="estos_log.js?v=2"></script><!-- simple stanza logger -->
|
||||
<script src="desktopsharing.js?v=3"></script><!-- desktop sharing -->
|
||||
|
|
|
@ -500,9 +500,8 @@ var RTC = {
|
|||
if(!stream)
|
||||
return false;
|
||||
|
||||
var isMuted = (value === "true");
|
||||
if (isMuted != stream.muted) {
|
||||
stream.setMute(isMuted);
|
||||
if (value != stream.muted) {
|
||||
stream.setMute(value);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -5814,7 +5814,8 @@ var VideoLayout = (function (my) {
|
|||
/**
|
||||
* On video muted event.
|
||||
*/
|
||||
$(document).bind('videomuted.muc', function (event, jid, isMuted) {
|
||||
$(document).bind('videomuted.muc', function (event, jid, value) {
|
||||
var isMuted = (value === "true");
|
||||
if(!RTC.muteRemoteVideoStream(jid, isMuted))
|
||||
return;
|
||||
|
||||
|
@ -5828,7 +5829,7 @@ var VideoLayout = (function (my) {
|
|||
}
|
||||
|
||||
if (videoSpanId)
|
||||
VideoLayout.showVideoIndicator(videoSpanId, isMuted);
|
||||
VideoLayout.showVideoIndicator(videoSpanId, value);
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -114,9 +114,8 @@ var RTC = {
|
|||
if(!stream)
|
||||
return false;
|
||||
|
||||
var isMuted = (value === "true");
|
||||
if (isMuted != stream.muted) {
|
||||
stream.setMute(isMuted);
|
||||
if (value != stream.muted) {
|
||||
stream.setMute(value);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -1637,7 +1637,8 @@ var VideoLayout = (function (my) {
|
|||
/**
|
||||
* On video muted event.
|
||||
*/
|
||||
$(document).bind('videomuted.muc', function (event, jid, isMuted) {
|
||||
$(document).bind('videomuted.muc', function (event, jid, value) {
|
||||
var isMuted = (value === "true");
|
||||
if(!RTC.muteRemoteVideoStream(jid, isMuted))
|
||||
return;
|
||||
|
||||
|
@ -1651,7 +1652,7 @@ var VideoLayout = (function (my) {
|
|||
}
|
||||
|
||||
if (videoSpanId)
|
||||
VideoLayout.showVideoIndicator(videoSpanId, isMuted);
|
||||
VideoLayout.showVideoIndicator(videoSpanId, value);
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue