Table of Contents | ||||
---|---|---|---|---|
|
Embedding Browser Call
VSee extend Jitsi Meet for browser call component. This version of Jitsi Meet allows calling capability with VSee Messenger on Windows, Mac, iOS, Android as well as VSeeKit on mobile platform (iOS / Android)
To get started, you need to
Step 1: Embed external_api.min.js
<script src='https://browser-call.vsee.me/meet/libs/external_api.min.js?_=10'></script>
Step 2: Define container
<div id="vseeBrowserCall"></div>
Step 3: Initialize browser call on iframe
Code Block |
---|
const domain = $('#domain').val() + "/meet";
const options = {
roomName: $('#roomName').val(),
noSsl: false,
parentNode: window.document.querySelector("#vseeBrowserCall"),
userName: $('#userName').val(),
authToken: $('#authToken').val(),
onload: function () {
$('#vsee-container').hide();
$('#vseeBrowserCall').show();
}
};
const conferenceObject = new JitsiMeetExternalAPI(domain, options); |
Step 4: Listening to events
You can add event listeners to the embedded Jitsi Meet using the addListener
method:
Code Block |
---|
conferenceObject.addListener(event, listener); |
If you want to remove a listener you can use the removeListener
method:
Code Block |
---|
conferenceObject.removeListener(event, listener); |
The event
parameter is a string object with the name of the event.
The listener
parameter is a function object with one argument that creates a notification when the event occurs along with related event data.
More detail list of events can be found here https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe
Step 5: Sending commands
You can control the embedded Jitsi Meet conference by calling executeCommand
on the JitsiMeetExternalAPI
object:
Code Block |
---|
conferenceObject.executeCommand(command, ...arguments); |
The command parameter is a string which contains the command name.
You can also execute multiple commands using the executeCommands
method:
Code Block |
---|
conferenceObject.executeCommands(commands); |
The commands
parameter is an object with the names of the commands as keys and the arguments for the commands as values:
Code Block |
---|
conferenceObject.executeCommands({
displayName: [ 'nickname' ],
toggleAudio: []
}); |
More detail list of commands can be found here https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe
Example code
Working example can be viewed here https://jsfiddle.net/gunyhake/btpqLrs4/
...
Expand | ||
---|---|---|
| ||
|
...
|
...
|
...
|
...
|
Expand | ||
---|---|---|
| ||
|
Expand | ||
---|---|---|
| ||
|
Embedding Browser Call
VSee extend Jitsi Meet for browser call component. This version of Jitsi Meet allows calling capability with VSee Messenger on Windows, Mac, iOS, Android as well as VSeeKit on mobile platform (iOS / Android)
To get started, you need to
Step 1: Embed external_api.min.js
<script src='https://browser-call.vsee.me/meet/libs/external_api.min.js?_=10'></script>
Step 2: Define container
<div id="vseeBrowserCall"></div>
Step 3: Initialize browser call on iframe
Code Block |
---|
const domain = $('#domain').val() + "/meet"; const options = { roomName: $('#roomName').val(), noSsl: false, parentNode: window.document.querySelector("#vseeBrowserCall"), userName: $('#userName').val(), authToken: $('#authToken').val(), onload: function () { $('#vsee-container').hide(); $('#vseeBrowserCall').show(); } }; const conferenceObject = new JitsiMeetExternalAPI(domain, options); |
Step 4: Listening to events
You can add event listeners to the embedded Jitsi Meet using the addListener
method:
Code Block |
---|
conferenceObject.addListener(event, listener); |
If you want to remove a listener you can use the removeListener
method:
Code Block |
---|
conferenceObject.removeListener(event, listener); |
The event
parameter is a string object with the name of the event.
The listener
parameter is a function object with one argument that creates a notification when the event occurs along with related event data.
More detail list of events can be found here https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe
Step 5: Sending commands
You can control the embedded Jitsi Meet conference by calling executeCommand
on the JitsiMeetExternalAPI
object:
Code Block |
---|
conferenceObject.executeCommand(command, ...arguments); |
The command parameter is a string which contains the command name.
You can also execute multiple commands using the executeCommands
method:
Code Block |
---|
conferenceObject.executeCommands(commands); |
The commands
parameter is an object with the names of the commands as keys and the arguments for the commands as values:
Code Block |
---|
conferenceObject.executeCommands({ displayName: [ 'nickname' ], toggleAudio: [] }); |
More detail list of commands can be found here https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe