xiangpei
2024-03-26 88c2acd1b100f9b047a35b6ff0dbaa827fd08568
src/views/meeting/list.vue
@@ -81,29 +81,16 @@
      this.userName = re.response.userName
      console.log(this.userInfo, this.roomName, this.userName)
    })
    // JitsiMeetJS.init();
    // const options = {
    //   serviceUrl:'https://124.222.18.104:8443/http-bind',
    //   hosts: {
    //     domain: 'https://124.222.18.104:8443/',
    //     muc: 'conference.meet.jit.si',
    //   },
    //   bosh: 'https://124.222.18.104:8443/http-bind',
    //   useStunTurn: true
    // }
    const domain = '124.222.18.104:8443';
    const domain = '101.35.247.188:8443';
    const options = {
      roomName: this.roomName,
      width: 100+'%',
      height: 100+'%',
      parentNode: document.querySelector('#meet'),
      configOverwrite: {
        disableSsl: true
      },
      userInfo: { displayName: this.userName }
      roomName: this.roomName, // 会议房间名称
      width: '100%',
      height: '100%',
      lang: 'zh_CN',
      parentNode: document.querySelector('#meet'), // 挂载的节点
      userInfo: { displayName: this.userName } // 参与人的相关信息,一个js对象就行,内容无限制
    };
    // const connection = new JitsiMeetJS.JitsiConnection('123', null, options);
    // 创建 Jitsi Meet API 对象
    const api = new JitsiMeetExternalAPI(domain, options);
    // this.meet = new JitsiMeet(