更新時間:2019-11-19
視頻會控包括設置當前會議模式,廣播或取消廣播指定與會者,選看與會者,本地視頻關(guān)閉/開啟切換,本地麥克關(guān)閉/開啟切換,設置遠端多畫面。
會控的前提是已加入會議。
代碼示例:
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。