|
|
@@ -715,21 +715,22 @@ var VideoLayout = (function (my) {
|
|
715
|
715
|
}
|
|
716
|
716
|
}
|
|
717
|
717
|
else {
|
|
718
|
|
- var audioMutedSpan = $('#' + videoSpanId + '>span.audioMuted');
|
|
|
718
|
+ if(videoMutedSpan.length == 0) {
|
|
|
719
|
+ videoMutedSpan = document.createElement('span');
|
|
|
720
|
+ videoMutedSpan.className = 'videoMuted';
|
|
719
|
721
|
|
|
720
|
|
- videoMutedSpan = document.createElement('span');
|
|
721
|
|
- videoMutedSpan.className = 'videoMuted';
|
|
722
|
|
- if (audioMutedSpan) {
|
|
723
|
|
- videoMutedSpan.right = '30px';
|
|
724
|
|
- }
|
|
725
|
|
- $('#' + videoSpanId)[0].appendChild(videoMutedSpan);
|
|
|
722
|
+ $('#' + videoSpanId)[0].appendChild(videoMutedSpan);
|
|
726
|
723
|
|
|
727
|
|
- var mutedIndicator = document.createElement('i');
|
|
728
|
|
- mutedIndicator.className = 'icon-camera-disabled';
|
|
729
|
|
- Util.setTooltip(mutedIndicator,
|
|
|
724
|
+ var mutedIndicator = document.createElement('i');
|
|
|
725
|
+ mutedIndicator.className = 'icon-camera-disabled';
|
|
|
726
|
+ Util.setTooltip(mutedIndicator,
|
|
730
|
727
|
"Participant has<br/>stopped the camera.",
|
|
731
|
728
|
"top");
|
|
732
|
|
- videoMutedSpan.appendChild(mutedIndicator);
|
|
|
729
|
+ videoMutedSpan.appendChild(mutedIndicator);
|
|
|
730
|
+ }
|
|
|
731
|
+ var audioMutedSpan = $('#' + videoSpanId + '>span.audioMuted');
|
|
|
732
|
+ videoMutedSpan = $('#' + videoSpanId + '>span.videoMuted');
|
|
|
733
|
+ videoMutedSpan.css({right: ((audioMutedSpan.length > 0)?'30px':'0px')});
|
|
733
|
734
|
}
|
|
734
|
735
|
};
|
|
735
|
736
|
|
|
|
@@ -746,17 +747,14 @@ var VideoLayout = (function (my) {
|
|
746
|
747
|
}
|
|
747
|
748
|
}
|
|
748
|
749
|
else {
|
|
749
|
|
- var videoMutedSpan = $('#' + videoSpanId + '>span.videoMuted');
|
|
750
|
|
-
|
|
|
750
|
+ if(audioMutedSpan.length > 0 )
|
|
|
751
|
+ return;
|
|
751
|
752
|
audioMutedSpan = document.createElement('span');
|
|
752
|
753
|
audioMutedSpan.className = 'audioMuted';
|
|
753
|
754
|
Util.setTooltip(audioMutedSpan,
|
|
754
|
|
- "Participant is muted",
|
|
755
|
|
- "top");
|
|
|
755
|
+ "Participant is muted",
|
|
|
756
|
+ "top");
|
|
756
|
757
|
|
|
757
|
|
- if (videoMutedSpan) {
|
|
758
|
|
- audioMutedSpan.right = '30px';
|
|
759
|
|
- }
|
|
760
|
758
|
$('#' + videoSpanId)[0].appendChild(audioMutedSpan);
|
|
761
|
759
|
|
|
762
|
760
|
var mutedIndicator = document.createElement('i');
|