Vue component for Jitsi Meet Web Integration via IFrame.
NOTE: Always refer to the official Jitsi Meet IFrame API Docs .
Copy $ yarn add @mycure/vue-jitsi-meet
Copy $ npm install @mycure/vue-jitsi-meet
Copy <template>
<vue-jitsi-meet
ref="jitsiRef"
domain="meet.jit.si"
:options="jitsiOptions"
></vue-jitsi-meet>
</template>
<script>
import { JitsiMeet } from '@mycure/vue-jitsi-meet';
export default {
components: {
VueJitsiMeet: JitsiMeet
},
computed: {
jitsiOptions () {
return {
roomName: 'some-room-name',
noSSL: false,
userInfo: {
email: 'user@email.com',
displayName: '',
},
configOverwrite: {
enableNoisyMicDetection: false
},
interfaceConfigOverwrite: {
SHOW_JITSI_WATERMARK: false,
SHOW_WATERMARK_FOR_GUESTS: false,
SHOW_CHROME_EXTENSION_BANNER: false
},
onload: this.onIFrameLoad
};
},
},
methods: {
onIFrameLoad () {
// do stuff
},
},
};
</script>
Copy <vue-jitsi-meet domain="meet.jit.si" :options="options"/>
addEventListener(eventName, handler)
Copy <vue-jitsi-meet ref="jitsiRef" :options="jitsiOptions"/>
Copy ...
computed: {
jitsiOptions () {
return {
...
onload: this.onIFrameLoad
};
},
},
methods: {
// Setup events after the IFrame onload event
onIFrameLoad () {
this.$refs.jitsiRef.addEventListener('participantJoined', this.onParticipantJoined);
},
onParticipantJoined (e) {
// do stuff
},
}
...
executeCommand(commandName, arg1, arg2, ...args)
Copy <vue-jitsi-meet ref="jitsiRef" :options="jitsiOptions"/>
Copy ...
computed: {
jitsiOptions () {
return {
...
onload: this.onIFrameLoad
};
},
},
methods: {
// Execute commands after the IFrame onload event
// or at any given action by the user.
onIFrameLoad () {
// This will load the 'The display name' value using the `displayName` command.
this.$refs.jitsiRef.executeCommand('displayName', 'The display name');
},
}
...