|
@@ -797,12 +797,27 @@ var VideoLayout = (function (my) {
|
797
|
797
|
"top");
|
798
|
798
|
videoMutedSpan.appendChild(mutedIndicator);
|
799
|
799
|
}
|
800
|
|
- var audioMutedSpan = $('#' + videoSpanId + '>span.audioMuted');
|
801
|
|
- videoMutedSpan = $('#' + videoSpanId + '>span.videoMuted');
|
802
|
|
- videoMutedSpan.css({right: ((audioMutedSpan.length > 0)?'50px':'30px')});
|
|
800
|
+
|
|
801
|
+ VideoLayout.updateMutePosition(videoSpanId);
|
|
802
|
+
|
803
|
803
|
}
|
804
|
804
|
};
|
805
|
805
|
|
|
806
|
+ my.updateMutePosition = function (videoSpanId) {
|
|
807
|
+ var audioMutedSpan = $('#' + videoSpanId + '>span.audioMuted');
|
|
808
|
+ var connectionIndicator = $('#' + videoSpanId + '>div.connectionindicator');
|
|
809
|
+ var videoMutedSpan = $('#' + videoSpanId + '>span.videoMuted');
|
|
810
|
+ if(connectionIndicator.length > 0
|
|
811
|
+ && connectionIndicator[0].style.display != "none") {
|
|
812
|
+ audioMutedSpan.css({right: "23px"});
|
|
813
|
+ videoMutedSpan.css({right: ((audioMutedSpan.length > 0? 23 : 0) + 30) + "px"});
|
|
814
|
+ }
|
|
815
|
+ else
|
|
816
|
+ {
|
|
817
|
+ audioMutedSpan.css({right: "0px"});
|
|
818
|
+ videoMutedSpan.css({right: (audioMutedSpan.length > 0? 30 : 0) + "px"});
|
|
819
|
+ }
|
|
820
|
+ }
|
806
|
821
|
/**
|
807
|
822
|
* Shows audio muted indicator over small videos.
|
808
|
823
|
* @param {string} isMuted
|
|
@@ -817,19 +832,20 @@ var VideoLayout = (function (my) {
|
817
|
832
|
}
|
818
|
833
|
}
|
819
|
834
|
else {
|
820
|
|
- if(audioMutedSpan.length > 0 )
|
821
|
|
- return;
|
822
|
|
- audioMutedSpan = document.createElement('span');
|
823
|
|
- audioMutedSpan.className = 'audioMuted';
|
824
|
|
- Util.setTooltip(audioMutedSpan,
|
825
|
|
- "Participant is muted",
|
826
|
|
- "top");
|
|
835
|
+ if(audioMutedSpan.length == 0 ) {
|
|
836
|
+ audioMutedSpan = document.createElement('span');
|
|
837
|
+ audioMutedSpan.className = 'audioMuted';
|
|
838
|
+ Util.setTooltip(audioMutedSpan,
|
|
839
|
+ "Participant is muted",
|
|
840
|
+ "top");
|
827
|
841
|
|
828
|
|
- $('#' + videoSpanId)[0].appendChild(audioMutedSpan);
|
|
842
|
+ $('#' + videoSpanId)[0].appendChild(audioMutedSpan);
|
|
843
|
+ var mutedIndicator = document.createElement('i');
|
|
844
|
+ mutedIndicator.className = 'icon-mic-disabled';
|
|
845
|
+ audioMutedSpan.appendChild(mutedIndicator);
|
829
|
846
|
|
830
|
|
- var mutedIndicator = document.createElement('i');
|
831
|
|
- mutedIndicator.className = 'icon-mic-disabled';
|
832
|
|
- audioMutedSpan.appendChild(mutedIndicator);
|
|
847
|
+ }
|
|
848
|
+ VideoLayout.updateMutePosition(videoSpanId);
|
833
|
849
|
}
|
834
|
850
|
};
|
835
|
851
|
|
|
@@ -1683,8 +1699,8 @@ var VideoLayout = (function (my) {
|
1683
|
1699
|
*/
|
1684
|
1700
|
ConnectionIndicator.prototype.remove = function()
|
1685
|
1701
|
{
|
1686
|
|
- this.popover.hide();
|
1687
|
1702
|
this.connectionIndicatorContainer.remove();
|
|
1703
|
+ this.popover.forceHide();
|
1688
|
1704
|
|
1689
|
1705
|
};
|
1690
|
1706
|
|
|
@@ -1698,11 +1714,15 @@ var VideoLayout = (function (my) {
|
1698
|
1714
|
if(percent === null)
|
1699
|
1715
|
{
|
1700
|
1716
|
this.connectionIndicatorContainer.style.display = "none";
|
|
1717
|
+ this.popover.forceHide();
|
1701
|
1718
|
return;
|
1702
|
1719
|
}
|
1703
|
1720
|
else
|
1704
|
1721
|
{
|
1705
|
|
- this.connectionIndicatorContainer.style.display = "block";
|
|
1722
|
+ if(this.connectionIndicatorContainer.style.display == "none") {
|
|
1723
|
+ this.connectionIndicatorContainer.style.display = "block";
|
|
1724
|
+ VideoLayout.updateMutePosition(this.videoContainer.id);
|
|
1725
|
+ }
|
1706
|
1726
|
}
|
1707
|
1727
|
this.bandwidth = object.bandwidth;
|
1708
|
1728
|
this.bitrate = object.bitrate;
|
|
@@ -1742,7 +1762,7 @@ var VideoLayout = (function (my) {
|
1742
|
1762
|
* Hides the popover
|
1743
|
1763
|
*/
|
1744
|
1764
|
ConnectionIndicator.prototype.hide = function () {
|
1745
|
|
- this.popover.hide();
|
|
1765
|
+ this.popover.forceHide();
|
1746
|
1766
|
};
|
1747
|
1767
|
|
1748
|
1768
|
/**
|
|
@@ -1750,6 +1770,8 @@ var VideoLayout = (function (my) {
|
1750
|
1770
|
*/
|
1751
|
1771
|
ConnectionIndicator.prototype.hideIndicator = function () {
|
1752
|
1772
|
this.connectionIndicatorContainer.style.display = "none";
|
|
1773
|
+ if(this.popover)
|
|
1774
|
+ this.popover.forceHide();
|
1753
|
1775
|
};
|
1754
|
1776
|
|
1755
|
1777
|
/**
|