更新時(shí)間:2019-11-19
視頻會(huì)控包括設(shè)置當(dāng)前會(huì)議模式,廣播或取消廣播指定與會(huì)者,選看與會(huì)者,本地視頻關(guān)閉/開啟切換,本地麥克關(guān)閉/開啟切換,設(shè)置遠(yuǎn)端多畫面。
會(huì)控的前提是已加入會(huì)議。
代碼示例:
function setConfMode(){ var mode = document.getElementById("confMode").value; client.setConfMode(parseInt(mode)); } |
參考文件:\usage\components\conf_control.html。
代碼示例:
function broadCastAttendee(){ var attendeeNum = document.getElementById("attendeeToBroadcast").value; var isBroad = document.getElementById("isBroad").value; client.broadcastAttendee(parseInt(isBroad), attendeeNum); } |
參考文件:\usage\components\conf_control.html。
代碼示例:
var cloudecWatchAttendee = function () { var conference = client.getConfHandler(); if (conference == null) { alert("Meeting has not yet started"); return; } var cloudecAttendee = document.getElementById("watchAttendee_ipt").value; client.watchAttendee(cloudecAttendee); } |
參考文件:\usage\components\conf_control.html。
代碼示例:
var cloudecOpenVideo = function () { var conference = client.getConfHandler(); if (conference == null) { alert("Meeting has not yet started"); return; } client.videoMute(true); } var cloudecCloseVideo = function () { var conference = client.getConfHandler(); if (conference == null) { alert("Meeting has not yet started"); return; } client.videoMute(false); } |
參考文件:\usage\components\conf_control.html。
代碼示例:
function micMute(){ client.micMute(true); } |
參考文件:\usage\conference_usage.js。
代碼示例:
var cloudecOpenSpeaker = function() { var conference = client.getConfHandler(); if (conference == null) { alert("Meeting has not yet started"); return; } client.speakerMute(false); } |
參考文件:\usage\conference_usage.js。
代碼示例:
var cloudecMixedPicture = function() { var conference = client.getConfHandler(); var cloudecMixedPictureAttendee = document.getElementById("mixedPicture_ipt").value; if (conference == null) { alert("Meeting has not yet started"); return; } var obj = document.getElementById("mixedPicture_select"); var mixedPictureType = obj.options[obj.selectedIndex].value; var objMode = document.getElementById("setConfMode_select"); var mode = objMode.options[objMode.selectedIndex].value; if (cloudecMixedPictureAttendee != null && cloudecMixedPictureAttendee != "") { var cloudecMixedPictureAttendeeArray = cloudecMixedPictureAttendee.split(","); var cloudecMixedAttendees = new Array(); for (var i = 0; i < cloudecMixedPictureAttendeeArray.length; i++) { cloudecMixedAttendees[i] = { number: cloudecMixedPictureAttendeeArray[i], name: cloudecMixedPictureAttendeeArray[i]}; } }else{ var cloudecMixedAttendees = new Array(); } client.setConfMixedPicture(Number(mode),Number(mixedPictureType),cloudecMixedAttendees); } |
參考文件:\usage\components\conf_control.html。