|
//点对对通话开始
function onP2PSessionStart(dwSrcUserId,dwTarUserId,sessionId,param){
sessionVideo={};
sessionVideo.srcUser=dwSrcUserId;
sessionVideo.tarUser=dwTarUserId;
sessionVideo.sessionType=SESSION_TYPE_CALL;
sessionVideo.sessionId=sessionId;
BRAC_EnterRoom(sessionId, "", 0);
//隐藏呼叫层
Getdmo("Initiative_Call_Div").style.display = "none";
//打开远程客户视频屏幕
createRemoteScreenStartVideo(dwTarUserId);
}
//创建远程客户视频
function createRemoteScreenStartVideo(dwTarUserId){
console.log("------------------dwTarUserId------------>"+dwTarUserId);
var dwTarUserIdUserName = BRAC_GetUserInfo(dwTarUserId,USERINFO_NAME);
// 打开目标用户视频
var parentObj=document.getElementById("remoteVideoPos");
BRAC_SetVideoPos(dwTarUserId, parentObj, "ANYCHAT_VIDEO_REMOTE");
}
但是网页上显示不出会话的手机端视频。 |
|