李勇

设置音视频界面不可点击

... ... @@ -62,7 +62,7 @@ export default class MessageEntrance extends Emiter {
constructor() {
super();
//sdk 信息
GlobalConfig.sdkVersion = "v2.5.5.20170914";
GlobalConfig.sdkVersion = "v2.5.6.20170914";
loger.warn("sdkVersion:" + GlobalConfig.sdkVersion);
//设置
... ...
... ... @@ -125,17 +125,17 @@ class WebRtcApe extends Emiter {
if(GlobalConfig.getUserRoleFromeNodeId(stream.getId())==ApeConsts.invisible){
//把远程视频添加到监课列表
loger.log("获取远程视频流成功->监课:" + stream.getId(),new Date().getTime());
let viewDiv=`<div id="${this.xdyRemote + stream.getId()}" style="width:${this.invisibleVideoWidth}px;height:${this.invisibleVideoHeight}px;float: left;margin-right: 1px;"></div>`;
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>`;
$(this.invisibleViewId).append(viewDiv);
}else if(GlobalConfig.getUserRoleFromeNodeId(stream.getId())==ApeConsts.host){
//把远程视图添加到老师列表
loger.log("获取远程视频流成功->老师:" + stream.getId(),new Date().getTime());
let viewDiv=`<div id="${this.xdyRemote + stream.getId()}" style="width:${this.hostRemoteVideoWidth}px;height:${this.hostRemoteVideoHeight}px;float: left;margin-right: 1px;"></div>`;
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>`;
$(this.hostRemoteViewId).append(viewDiv);
}else {
//把视图添加到学生列表
loger.log("获取远程视频流成功->学生:" + stream.getId(),new Date().getTime());
let viewDiv=`<div id="${this.xdyRemote + stream.getId()}" style="width:${this.normalRemoteVideoWidth}px;height:${this.normalRemoteVideoHeight}px;float: left;margin-right: 1px;"></div>`;
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>`;
$(this.normalRemoteViewId).append(viewDiv);
}
//播放视频
... ... @@ -261,7 +261,7 @@ class WebRtcApe extends Emiter {
videoBox.style.height=this.localVideoHeight+'px';
videoBox.style.float='left';
videoBox.style.marginRight="1px";
videoBox.style.pointerEvents='none';
$(this.localViewId).prepend(videoBox);//自己的视图往前添加
$("#"+viewName).css("transform", 'rotateY(180deg)');
... ...