浏览代码

Do not send SELECTED_ENDPOINT events for custom containers.

master
damencho 9 年前
父节点
当前提交
9abc78ef24
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      modules/UI/videolayout/VideoLayout.js

+ 2
- 2
modules/UI/videolayout/VideoLayout.js 查看文件

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,

正在加载...
取消
保存