|
@@ -583,25 +583,6 @@ const VideoLayout = {
|
583
|
583
|
localVideoThumbnail.showAudioIndicator(isMuted);
|
584
|
584
|
},
|
585
|
585
|
|
586
|
|
- /**
|
587
|
|
- * Shows/hides the indication about local connection being interrupted.
|
588
|
|
- *
|
589
|
|
- * @param {boolean} isInterrupted <tt>true</tt> if local connection is
|
590
|
|
- * currently in the interrupted state or <tt>false</tt> if the connection
|
591
|
|
- * is fine.
|
592
|
|
- */
|
593
|
|
- showLocalConnectionInterrupted(isInterrupted) {
|
594
|
|
- // Currently local video thumbnail displays only "active" or
|
595
|
|
- // "interrupted" despite the fact that ConnectionIndicator supports more
|
596
|
|
- // states.
|
597
|
|
- const status
|
598
|
|
- = isInterrupted
|
599
|
|
- ? JitsiParticipantConnectionStatus.INTERRUPTED
|
600
|
|
- : JitsiParticipantConnectionStatus.ACTIVE;
|
601
|
|
-
|
602
|
|
- localVideoThumbnail.updateConnectionStatus(status);
|
603
|
|
- },
|
604
|
|
-
|
605
|
586
|
/**
|
606
|
587
|
* Resizes thumbnails.
|
607
|
588
|
*/
|
|
@@ -715,22 +696,31 @@ const VideoLayout = {
|
715
|
696
|
},
|
716
|
697
|
|
717
|
698
|
/**
|
718
|
|
- * Shows/hides warning about remote user's connectivity issues.
|
|
699
|
+ * Shows/hides warning about a user's connectivity issues.
|
719
|
700
|
*
|
720
|
|
- * @param {string} id the ID of the remote participant(MUC nickname)
|
|
701
|
+ * @param {string} id - The ID of the remote participant(MUC nickname).
|
|
702
|
+ * @param {status} status - The new connection status.
|
|
703
|
+ * @returns {void}
|
721
|
704
|
*/
|
722
|
|
- // eslint-disable-next-line no-unused-vars
|
723
|
|
- onParticipantConnectionStatusChanged(id) {
|
724
|
|
- // Show/hide warning on the large video
|
725
|
|
- if (this.isCurrentlyOnLarge(id)) {
|
726
|
|
- if (largeVideo) {
|
727
|
|
- // We have to trigger full large video update to transition from
|
728
|
|
- // avatar to video on connectivity restored.
|
729
|
|
- this.updateLargeVideo(id, true /* force update */);
|
|
705
|
+ onParticipantConnectionStatusChanged(id, status) {
|
|
706
|
+ if (APP.conference.isLocalId(id)) {
|
|
707
|
+ // Maintain old logic of passing in either interrupted or active
|
|
708
|
+ // to updateConnectionStatus.
|
|
709
|
+ localVideoThumbnail.updateConnectionStatus(status);
|
|
710
|
+
|
|
711
|
+ if (status === JitsiParticipantConnectionStatus.INTERRUPTED) {
|
|
712
|
+ largeVideo && largeVideo.onVideoInterrupted();
|
|
713
|
+ } else {
|
|
714
|
+ largeVideo && largeVideo.onVideoRestored();
|
730
|
715
|
}
|
|
716
|
+
|
|
717
|
+ return;
|
731
|
718
|
}
|
732
|
719
|
|
733
|
|
- // Show/hide warning on the thumbnail
|
|
720
|
+ // We have to trigger full large video update to transition from
|
|
721
|
+ // avatar to video on connectivity restored.
|
|
722
|
+ this._updateLargeVideoIfDisplayed(id, true);
|
|
723
|
+
|
734
|
724
|
const remoteVideo = remoteVideos[id];
|
735
|
725
|
|
736
|
726
|
if (remoteVideo) {
|
|
@@ -905,24 +895,6 @@ const VideoLayout = {
|
905
|
895
|
}
|
906
|
896
|
},
|
907
|
897
|
|
908
|
|
- /**
|
909
|
|
- * Indicates that the video has been interrupted.
|
910
|
|
- */
|
911
|
|
- onVideoInterrupted() {
|
912
|
|
- if (largeVideo) {
|
913
|
|
- largeVideo.onVideoInterrupted();
|
914
|
|
- }
|
915
|
|
- },
|
916
|
|
-
|
917
|
|
- /**
|
918
|
|
- * Indicates that the video has been restored.
|
919
|
|
- */
|
920
|
|
- onVideoRestored() {
|
921
|
|
- if (largeVideo) {
|
922
|
|
- largeVideo.onVideoRestored();
|
923
|
|
- }
|
924
|
|
- },
|
925
|
|
-
|
926
|
898
|
isLargeVideoVisible() {
|
927
|
899
|
return this.isLargeContainerTypeVisible(VIDEO_CONTAINER_TYPE);
|
928
|
900
|
},
|
|
@@ -1176,11 +1148,13 @@ const VideoLayout = {
|
1176
|
1148
|
*
|
1177
|
1149
|
* @param {string} participantId - The participant ID that should trigger an
|
1178
|
1150
|
* update of large video if displayed.
|
|
1151
|
+ * @param {boolean} force - Whether or not the large video update should
|
|
1152
|
+ * happen no matter what.
|
1179
|
1153
|
* @returns {void}
|
1180
|
1154
|
*/
|
1181
|
|
- _updateLargeVideoIfDisplayed(participantId) {
|
|
1155
|
+ _updateLargeVideoIfDisplayed(participantId, force = false) {
|
1182
|
1156
|
if (this.isCurrentlyOnLarge(participantId)) {
|
1183
|
|
- this.updateLargeVideo(participantId);
|
|
1157
|
+ this.updateLargeVideo(participantId, force);
|
1184
|
1158
|
}
|
1185
|
1159
|
}
|
1186
|
1160
|
};
|