浏览代码

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

正在加载...
取消
保存