华为云会议 MEETING-场景8:邮件链接入会:示例代码

时间:2024-10-28 14:49:45

示例代码

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
// 通过会议ID和Random加入会议
async goToJoinConfByRandom(){
  let { confId, random, nickName, isSpeakerOff, isMicOn, isCameraOn } = this.state;
  let param = {
    confId: "988148352",
    random: "c4f92bc34e685bbba6c23589741be0431997f30da5d6e47b",
    nickName: "杭州会场",
    isSpeakerOff: false, // 入会后默认扬声器不关闭
    isMicOn: true, // 入会后默认麦克风打开
    isCameraOn: false, // 入会后默认摄像头关闭
  }
  const apiService = new ApiService();
  let setResult = await apiService.joinConfByRandom(param);
  if(setResult.ret != 0){
    window.electron.ipcRenderer.send("show-error-alert", "joinConfByRandom error = " + setResult.ret);
  }
}
support.huaweicloud.com/sdkreference-meeting/toctopics/zh-cn_topic_0000001230302220.html