Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- head() {
- return {
- title: this.title,
- script: [
- {
- src: "https://meet.jit.si/libs/lib-jitsi-meet.min.js",
- type: "text/javascript"
- },
- ]
- }
- jitsiInit(){
- if(!window)return;
- JitsiMeetJS.init();
- const options = {
- hosts: {
- domain: 'c..net',
- // muc: 'conference.c..net'
- },
- bosh: 'https://c..net/http-bind'
- };
- var connection = new JitsiMeetJS.JitsiConnection(null, null, options);
- connection.addEventListener(JitsiMeetJS.events.connection.CONNECTION_ESTABLISHED, function(){console.info('onConnectionSuccess');});
- connection.addEventListener(JitsiMeetJS.events.connection.CONNECTION_FAILED,function(){console.info('onConnectionFailed');});
- connection.addEventListener(JitsiMeetJS.events.connection.CONNECTION_DISCONNECTED, function(){console.info('disconnect');});
- JitsiMeetJS.mediaDevices.addEventListener(
- JitsiMeetJS.events.mediaDevices.DEVICE_LIST_CHANGED,
- function(){console.info('onDeviceListChanged');});
- connection.connect();
- console.info('jipa',connection);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement