Przeglądaj źródła

Do not send SELECTED_ENDPOINT events for custom containers.

j8
damencho 9 lat temu
rodzic
commit
9abc78ef24
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      modules/UI/videolayout/VideoLayout.js

+ 2
- 2
modules/UI/videolayout/VideoLayout.js Wyświetl plik

922
         let currentId = largeVideo.id;
922
         let currentId = largeVideo.id;
923
 
923
 
924
         if (!isOnLarge || forceUpdate) {
924
         if (!isOnLarge || forceUpdate) {
925
-            if (id !== currentId) {
925
+            let videoType = this.getRemoteVideoType(id);
926
+            if (id !== currentId && videoType === VIDEO_CONTAINER_TYPE) {
926
                 eventEmitter.emit(UIEvents.SELECTED_ENDPOINT, id);
927
                 eventEmitter.emit(UIEvents.SELECTED_ENDPOINT, id);
927
             }
928
             }
928
             if (currentId) {
929
             if (currentId) {
931
 
932
 
932
             let smallVideo = this.getSmallVideo(id);
933
             let smallVideo = this.getSmallVideo(id);
933
 
934
 
934
-            let videoType = this.getRemoteVideoType(id);
935
             largeVideo.updateLargeVideo(
935
             largeVideo.updateLargeVideo(
936
                 id,
936
                 id,
937
                 smallVideo.videoStream,
937
                 smallVideo.videoStream,

Ładowanie…
Anuluj
Zapisz