|
//开启远端视频窗口
function setRemoteView() {
agoraLive.enableVideo(function(ret) {
if (ret.status) {
console.log("元----",remoteId);
agoraLive.initVideoRect({
uid: remoteId,
fixedOn: api.frameName,
rect: full.video
});
agoraLive.setVideoProfile({
profile:'120P',
swapWidthAndHeight:false
},function(ret,err) {
console.log('55555555',JSON.stringify(ret))
})
// agoraLive.setRemoteVideoStream({
// uid:remoteId,
// type:'high'
// })
// setTimeout(openRemote(), 3000);
openRemote()
// setTimeout(fnstartPreview(), 2000);
}
});
} |
|