|
[2016-09-13 11:26:55(438)] Invoke UserCameraControl(userid=-1, bOpen=1, stream=1) 这里 stream=1有问题 一般这个参数 stream=0 应该是程序调用有问题你用下面这个代码试一试
for(var i=0;i<mDevices.length;i++){
//指定某一路摄像头打开
/*if (i == 1 || i == 2)
continue; */
BRAC_SetUserStreamInfo(-1, i, BRAC_STREAMINFO_VIDEOCODECID,mDevices[i]);
BRAC_SetVideoPosEx(mSelfUserId, GetID("div_localvideoarea"+i), "AnyChatLocalVideoDiv"+i,i);// 设置视频显示位置
BRAC_UserCameraControlEx(mSelfUserId,1,i,0,"");
BRAC_UserSpeakControl(0, 1); // 打开对方音频
list_videosite[i]=1;
count++;
mRefreshBrateTimer = setInterval(function () {
for(var k=0;k<mDevices.length;k++)
{
GetID("div_localstreamname"+k).innerHTML = k+"路视频码率:"+parseInt(BRAC_GetUserStreamInfoInt(-1,k,BRAC_STREAMINFO_VIDEOBITRATE)/1000)+"KB/S";
}
}, 3000);
|
|