正在显示
2 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -62,7 +62,7 @@ export default class MessageEntrance extends Emiter { | @@ -62,7 +62,7 @@ export default class MessageEntrance extends Emiter { | ||
| 62 | constructor() { | 62 | constructor() { |
| 63 | super(); | 63 | super(); |
| 64 | //sdk 信息 | 64 | //sdk 信息 |
| 65 | - GlobalConfig.sdkVersion = "v2.5.5.20170914"; | 65 | + GlobalConfig.sdkVersion = "v2.5.6.20170914"; |
| 66 | loger.warn("sdkVersion:" + GlobalConfig.sdkVersion); | 66 | loger.warn("sdkVersion:" + GlobalConfig.sdkVersion); |
| 67 | 67 | ||
| 68 | //设置 | 68 | //设置 |
| @@ -125,17 +125,17 @@ class WebRtcApe extends Emiter { | @@ -125,17 +125,17 @@ class WebRtcApe extends Emiter { | ||
| 125 | if(GlobalConfig.getUserRoleFromeNodeId(stream.getId())==ApeConsts.invisible){ | 125 | if(GlobalConfig.getUserRoleFromeNodeId(stream.getId())==ApeConsts.invisible){ |
| 126 | //把远程视频添加到监课列表 | 126 | //把远程视频添加到监课列表 |
| 127 | loger.log("获取远程视频流成功->监课:" + stream.getId(),new Date().getTime()); | 127 | loger.log("获取远程视频流成功->监课:" + stream.getId(),new Date().getTime()); |
| 128 | - let viewDiv=`<div id="${this.xdyRemote + stream.getId()}" style="width:${this.invisibleVideoWidth}px;height:${this.invisibleVideoHeight}px;float: left;margin-right: 1px;"></div>`; | 128 | + let viewDiv=`<div id="${this.xdyRemote + stream.getId()}" style="width:${this.invisibleVideoWidth}px;height:${this.invisibleVideoHeight}px;float: left;margin-right: 1px;pointer-events: none;"></div>`; |
| 129 | $(this.invisibleViewId).append(viewDiv); | 129 | $(this.invisibleViewId).append(viewDiv); |
| 130 | }else if(GlobalConfig.getUserRoleFromeNodeId(stream.getId())==ApeConsts.host){ | 130 | }else if(GlobalConfig.getUserRoleFromeNodeId(stream.getId())==ApeConsts.host){ |
| 131 | //把远程视图添加到老师列表 | 131 | //把远程视图添加到老师列表 |
| 132 | loger.log("获取远程视频流成功->老师:" + stream.getId(),new Date().getTime()); | 132 | loger.log("获取远程视频流成功->老师:" + stream.getId(),new Date().getTime()); |
| 133 | - let viewDiv=`<div id="${this.xdyRemote + stream.getId()}" style="width:${this.hostRemoteVideoWidth}px;height:${this.hostRemoteVideoHeight}px;float: left;margin-right: 1px;"></div>`; | 133 | + let viewDiv=`<div id="${this.xdyRemote + stream.getId()}" style="width:${this.hostRemoteVideoWidth}px;height:${this.hostRemoteVideoHeight}px;float: left;margin-right: 1px;pointer-events: none;"></div>`; |
| 134 | $(this.hostRemoteViewId).append(viewDiv); | 134 | $(this.hostRemoteViewId).append(viewDiv); |
| 135 | }else { | 135 | }else { |
| 136 | //把视图添加到学生列表 | 136 | //把视图添加到学生列表 |
| 137 | loger.log("获取远程视频流成功->学生:" + stream.getId(),new Date().getTime()); | 137 | loger.log("获取远程视频流成功->学生:" + stream.getId(),new Date().getTime()); |
| 138 | - let viewDiv=`<div id="${this.xdyRemote + stream.getId()}" style="width:${this.normalRemoteVideoWidth}px;height:${this.normalRemoteVideoHeight}px;float: left;margin-right: 1px;"></div>`; | 138 | + let viewDiv=`<div id="${this.xdyRemote + stream.getId()}" style="width:${this.normalRemoteVideoWidth}px;height:${this.normalRemoteVideoHeight}px;float: left;margin-right: 1px;pointer-events: none;"></div>`; |
| 139 | $(this.normalRemoteViewId).append(viewDiv); | 139 | $(this.normalRemoteViewId).append(viewDiv); |
| 140 | } | 140 | } |
| 141 | //播放视频 | 141 | //播放视频 |
| @@ -261,7 +261,7 @@ class WebRtcApe extends Emiter { | @@ -261,7 +261,7 @@ class WebRtcApe extends Emiter { | ||
| 261 | videoBox.style.height=this.localVideoHeight+'px'; | 261 | videoBox.style.height=this.localVideoHeight+'px'; |
| 262 | videoBox.style.float='left'; | 262 | videoBox.style.float='left'; |
| 263 | videoBox.style.marginRight="1px"; | 263 | videoBox.style.marginRight="1px"; |
| 264 | - | 264 | + videoBox.style.pointerEvents='none'; |
| 265 | $(this.localViewId).prepend(videoBox);//自己的视图往前添加 | 265 | $(this.localViewId).prepend(videoBox);//自己的视图往前添加 |
| 266 | $("#"+viewName).css("transform", 'rotateY(180deg)'); | 266 | $("#"+viewName).css("transform", 'rotateY(180deg)'); |
| 267 | 267 |
-
请 注册 或 登录 后发表评论