2017-04-03 15:48:46 +00:00
|
|
|
import EventEmitter from 'events';
|
2017-04-18 03:17:23 +00:00
|
|
|
|
2017-04-28 20:24:20 +00:00
|
|
|
import {
|
|
|
|
PostMessageTransportBackend,
|
|
|
|
Transport
|
|
|
|
} from '../../transport';
|
2016-06-17 20:35:40 +00:00
|
|
|
|
2017-04-03 15:48:46 +00:00
|
|
|
const logger = require('jitsi-meet-logger').getLogger(__filename);
|
2016-06-17 20:35:40 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Maps the names of the commands expected by the API with the name of the
|
|
|
|
* commands expected by jitsi-meet
|
|
|
|
*/
|
2017-03-30 21:15:56 +00:00
|
|
|
const commands = {
|
2017-04-03 15:48:46 +00:00
|
|
|
avatarUrl: 'avatar-url',
|
|
|
|
displayName: 'display-name',
|
|
|
|
email: 'email',
|
|
|
|
hangup: 'video-hangup',
|
|
|
|
toggleAudio: 'toggle-audio',
|
|
|
|
toggleChat: 'toggle-chat',
|
|
|
|
toggleContactList: 'toggle-contact-list',
|
|
|
|
toggleFilmStrip: 'toggle-film-strip',
|
|
|
|
toggleShareScreen: 'toggle-share-screen',
|
|
|
|
toggleVideo: 'toggle-video'
|
2016-06-17 20:35:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Maps the names of the events expected by the API with the name of the
|
|
|
|
* events expected by jitsi-meet
|
|
|
|
*/
|
2017-03-30 21:15:56 +00:00
|
|
|
const events = {
|
2017-04-18 03:17:23 +00:00
|
|
|
'display-name-change': 'displayNameChange',
|
|
|
|
'incoming-message': 'incomingMessage',
|
|
|
|
'outgoing-message': 'outgoingMessage',
|
|
|
|
'participant-joined': 'participantJoined',
|
|
|
|
'participant-left': 'participantLeft',
|
|
|
|
'video-ready-to-close': 'readyToClose',
|
|
|
|
'video-conference-joined': 'videoConferenceJoined',
|
|
|
|
'video-conference-left': 'videoConferenceLeft'
|
2016-06-17 20:35:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Last id of api object
|
|
|
|
* @type {number}
|
2016-06-17 20:35:40 +00:00
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
let id = 0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The minimum height for the Jitsi Meet frame
|
|
|
|
* @type {number}
|
|
|
|
*/
|
|
|
|
const MIN_HEIGHT = 300;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The minimum width for the Jitsi Meet frame
|
|
|
|
* @type {number}
|
|
|
|
*/
|
|
|
|
const MIN_WIDTH = 790;
|
2016-06-17 20:35:40 +00:00
|
|
|
|
2017-01-18 19:20:32 +00:00
|
|
|
/**
|
|
|
|
* Adds given number to the numberOfParticipants property of given APIInstance.
|
2017-04-03 15:48:46 +00:00
|
|
|
*
|
|
|
|
* @param {JitsiMeetExternalAPI} APIInstance - The instance of the API.
|
|
|
|
* @param {int} number - The number of participants to be added to
|
2017-01-18 19:20:32 +00:00
|
|
|
* numberOfParticipants property (this parameter can be negative number if the
|
|
|
|
* numberOfParticipants should be decreased).
|
2017-04-03 15:48:46 +00:00
|
|
|
* @returns {void}
|
2017-01-18 19:20:32 +00:00
|
|
|
*/
|
|
|
|
function changeParticipantNumber(APIInstance, number) {
|
|
|
|
APIInstance.numberOfParticipants += number;
|
|
|
|
}
|
|
|
|
|
2017-03-29 18:20:28 +00:00
|
|
|
/**
|
|
|
|
* Generates array with URL params based on the passed config object that will
|
|
|
|
* be used for the Jitsi Meet URL generation.
|
|
|
|
*
|
2017-04-03 15:48:46 +00:00
|
|
|
* @param {Object} config - The config object.
|
|
|
|
* @returns {Array<string>} The array with URL param strings.
|
2017-03-29 18:20:28 +00:00
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
function configToURLParamsArray(config = {}) {
|
2017-03-29 18:20:28 +00:00
|
|
|
const params = [];
|
|
|
|
|
2017-04-03 15:48:46 +00:00
|
|
|
for (const key in config) { // eslint-disable-line guard-for-in
|
2017-03-29 18:20:28 +00:00
|
|
|
try {
|
2017-04-27 20:21:01 +00:00
|
|
|
params.push(
|
|
|
|
`${key}=${encodeURIComponent(JSON.stringify(config[key]))}`);
|
2017-03-29 18:20:28 +00:00
|
|
|
} catch (e) {
|
|
|
|
console.warn(`Error encoding ${key}: ${e}`);
|
|
|
|
}
|
|
|
|
}
|
2017-04-03 15:48:46 +00:00
|
|
|
|
2017-03-29 18:20:28 +00:00
|
|
|
return params;
|
|
|
|
}
|
|
|
|
|
2017-04-03 15:48:46 +00:00
|
|
|
/**
|
|
|
|
* Generates the URL for the iframe.
|
|
|
|
*
|
|
|
|
* @param {string} domain - The domain name of the server that hosts the
|
|
|
|
* conference.
|
|
|
|
* @param {string} [options] - Another optional parameters.
|
|
|
|
* @param {Object} [options.configOverwrite] - Object containing configuration
|
|
|
|
* options defined in config.js to be overridden.
|
|
|
|
* @param {Object} [options.interfaceConfigOverwrite] - Object containing
|
|
|
|
* configuration options defined in interface_config.js to be overridden.
|
|
|
|
* @param {string} [options.jwt] - The JWT token if needed by jitsi-meet for
|
|
|
|
* authentication.
|
|
|
|
* @param {boolean} [options.noSsl] - If the value is true https won't be used.
|
|
|
|
* @param {string} [options.roomName] - The name of the room to join.
|
|
|
|
* @returns {string} The URL.
|
|
|
|
*/
|
|
|
|
function generateURL(domain, options = {}) {
|
|
|
|
const {
|
|
|
|
configOverwrite,
|
|
|
|
interfaceConfigOverwrite,
|
|
|
|
jwt,
|
|
|
|
noSSL,
|
|
|
|
roomName
|
|
|
|
} = options;
|
|
|
|
|
|
|
|
let url = `${noSSL ? 'http' : 'https'}://${domain}/${roomName || ''}`;
|
|
|
|
|
|
|
|
if (jwt) {
|
|
|
|
url += `?jwt=${jwt}`;
|
|
|
|
}
|
|
|
|
|
|
|
|
url += `#jitsi_meet_external_api_id=${id}`;
|
|
|
|
|
|
|
|
const configURLParams = configToURLParamsArray(configOverwrite);
|
|
|
|
|
|
|
|
if (configURLParams.length) {
|
|
|
|
url += `&config.${configURLParams.join('&config.')}`;
|
|
|
|
}
|
|
|
|
|
|
|
|
const interfaceConfigURLParams
|
|
|
|
= configToURLParamsArray(interfaceConfigOverwrite);
|
|
|
|
|
|
|
|
if (interfaceConfigURLParams.length) {
|
|
|
|
url += `&interfaceConfig.${
|
|
|
|
interfaceConfigURLParams.join('&interfaceConfig.')}`;
|
|
|
|
}
|
|
|
|
|
|
|
|
return url;
|
|
|
|
}
|
|
|
|
|
2016-06-17 20:35:40 +00:00
|
|
|
/**
|
2017-03-30 21:15:56 +00:00
|
|
|
* The IFrame API interface class.
|
2016-06-17 20:35:40 +00:00
|
|
|
*/
|
2017-03-31 16:38:44 +00:00
|
|
|
class JitsiMeetExternalAPI extends EventEmitter {
|
2017-03-30 21:15:56 +00:00
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Constructs new API instance. Creates iframe and loads Jitsi Meet in it.
|
|
|
|
*
|
|
|
|
* @param {string} domain - The domain name of the server that hosts the
|
|
|
|
* conference.
|
|
|
|
* @param {string} [roomName] - The name of the room to join.
|
|
|
|
* @param {number} [width] - Width of the iframe.
|
|
|
|
* @param {number} [height] - Height of the iframe.
|
|
|
|
* @param {DOMElement} [parentNode] - The node that will contain the
|
|
|
|
* iframe.
|
|
|
|
* @param {Object} [configOverwrite] - Object containing configuration
|
|
|
|
* options defined in config.js to be overridden.
|
|
|
|
* @param {Object} [interfaceConfigOverwrite] - Object containing
|
|
|
|
* configuration options defined in interface_config.js to be overridden.
|
|
|
|
* @param {boolean} [noSSL] - If the value is true https won't be used.
|
|
|
|
* @param {string} [jwt] - The JWT token if needed by jitsi-meet for
|
2017-03-30 21:15:56 +00:00
|
|
|
* authentication.
|
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
constructor(domain, // eslint-disable-line max-params
|
|
|
|
roomName = '',
|
|
|
|
width = MIN_WIDTH,
|
|
|
|
height = MIN_HEIGHT,
|
|
|
|
parentNode = document.body,
|
|
|
|
configOverwrite = {},
|
|
|
|
interfaceConfigOverwrite = {},
|
|
|
|
noSSL = false,
|
|
|
|
jwt = undefined) {
|
2017-03-31 16:38:44 +00:00
|
|
|
super();
|
2017-04-03 15:48:46 +00:00
|
|
|
this.parentNode = parentNode;
|
|
|
|
this.url = generateURL(domain, {
|
|
|
|
configOverwrite,
|
|
|
|
interfaceConfigOverwrite,
|
|
|
|
jwt,
|
|
|
|
noSSL,
|
|
|
|
roomName
|
|
|
|
});
|
|
|
|
this._createIFrame(Math.max(height, MIN_HEIGHT),
|
|
|
|
Math.max(width, MIN_WIDTH));
|
2017-04-18 03:17:23 +00:00
|
|
|
this._transport = new Transport({
|
2017-04-28 20:24:20 +00:00
|
|
|
backend: new PostMessageTransportBackend({
|
2017-04-18 03:17:23 +00:00
|
|
|
postisOptions: {
|
|
|
|
scope: `jitsi_meet_external_api_${id}`,
|
|
|
|
window: this.frame.contentWindow
|
|
|
|
}
|
|
|
|
})
|
2017-04-03 15:48:46 +00:00
|
|
|
});
|
|
|
|
this.numberOfParticipants = 1;
|
|
|
|
this._setupListeners();
|
|
|
|
id++;
|
|
|
|
}
|
2017-03-31 16:38:44 +00:00
|
|
|
|
2017-04-03 15:48:46 +00:00
|
|
|
/**
|
|
|
|
* Creates the iframe element.
|
|
|
|
*
|
|
|
|
* @param {number} height - The height of the iframe.
|
|
|
|
* @param {number} width - The with of the iframe.
|
|
|
|
* @returns {void}
|
|
|
|
*
|
|
|
|
* @private
|
|
|
|
*/
|
|
|
|
_createIFrame(height, width) {
|
|
|
|
this.iframeHolder
|
|
|
|
= this.parentNode.appendChild(document.createElement('div'));
|
|
|
|
this.iframeHolder.id = `jitsiConference${id}`;
|
|
|
|
this.iframeHolder.style.width = `${width}px`;
|
|
|
|
this.iframeHolder.style.height = `${height}px`;
|
2016-06-17 20:35:40 +00:00
|
|
|
|
2017-04-03 15:48:46 +00:00
|
|
|
this.frameName = `jitsiConferenceFrame${id}`;
|
2016-06-17 20:35:40 +00:00
|
|
|
|
2017-04-03 15:48:46 +00:00
|
|
|
this.frame = document.createElement('iframe');
|
2017-03-30 21:15:56 +00:00
|
|
|
this.frame.src = this.url;
|
|
|
|
this.frame.name = this.frameName;
|
|
|
|
this.frame.id = this.frameName;
|
2017-04-03 15:48:46 +00:00
|
|
|
this.frame.width = '100%';
|
|
|
|
this.frame.height = '100%';
|
|
|
|
this.frame.setAttribute('allowFullScreen', 'true');
|
2017-03-30 21:15:56 +00:00
|
|
|
this.frame = this.iframeHolder.appendChild(this.frame);
|
2016-06-17 20:35:40 +00:00
|
|
|
}
|
|
|
|
|
2017-03-30 21:15:56 +00:00
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Setups listeners that are used internally for JitsiMeetExternalAPI.
|
|
|
|
*
|
|
|
|
* @returns {void}
|
|
|
|
*
|
|
|
|
* @private
|
2017-03-30 21:15:56 +00:00
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
_setupListeners() {
|
|
|
|
|
2017-05-01 20:59:18 +00:00
|
|
|
this._transport.on('event', ({ name, ...data }) => {
|
2017-04-18 03:17:23 +00:00
|
|
|
if (name === 'participant-joined') {
|
|
|
|
changeParticipantNumber(this, 1);
|
2017-04-27 20:21:01 +00:00
|
|
|
} else if (name === 'participant-left') {
|
2017-04-18 03:17:23 +00:00
|
|
|
changeParticipantNumber(this, -1);
|
|
|
|
}
|
|
|
|
|
|
|
|
const eventName = events[name];
|
|
|
|
|
|
|
|
if (eventName) {
|
|
|
|
this.emit(eventName, data);
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
});
|
2017-03-30 21:15:56 +00:00
|
|
|
}
|
2016-06-17 20:35:40 +00:00
|
|
|
|
2017-03-30 21:15:56 +00:00
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Adds event listener to Meet Jitsi.
|
|
|
|
*
|
|
|
|
* @param {string} event - The name of the event.
|
|
|
|
* @param {Function} listener - The listener.
|
|
|
|
* @returns {void}
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
* NOTE: This method is not removed for backward comatability purposes.
|
2017-03-30 21:15:56 +00:00
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
addEventListener(event, listener) {
|
|
|
|
this.on(event, listener);
|
2017-03-30 21:15:56 +00:00
|
|
|
}
|
2016-06-17 20:35:40 +00:00
|
|
|
|
2017-03-30 21:15:56 +00:00
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Adds event listeners to Meet Jitsi.
|
|
|
|
*
|
|
|
|
* @param {Object} listeners - The object key should be the name of
|
2017-03-30 21:15:56 +00:00
|
|
|
* the event and value - the listener.
|
|
|
|
* Currently we support the following
|
|
|
|
* events:
|
|
|
|
* incomingMessage - receives event notifications about incoming
|
|
|
|
* messages. The listener will receive object with the following structure:
|
|
|
|
* {{
|
2017-04-03 15:48:46 +00:00
|
|
|
* 'from': from,//JID of the user that sent the message
|
|
|
|
* 'nick': nick,//the nickname of the user that sent the message
|
|
|
|
* 'message': txt//the text of the message
|
2017-03-30 21:15:56 +00:00
|
|
|
* }}
|
|
|
|
* outgoingMessage - receives event notifications about outgoing
|
|
|
|
* messages. The listener will receive object with the following structure:
|
|
|
|
* {{
|
2017-04-03 15:48:46 +00:00
|
|
|
* 'message': txt//the text of the message
|
2017-03-30 21:15:56 +00:00
|
|
|
* }}
|
|
|
|
* displayNameChanged - receives event notifications about display name
|
|
|
|
* change. The listener will receive object with the following structure:
|
|
|
|
* {{
|
|
|
|
* jid: jid,//the JID of the participant that changed his display name
|
|
|
|
* displayname: displayName //the new display name
|
|
|
|
* }}
|
|
|
|
* participantJoined - receives event notifications about new participant.
|
|
|
|
* The listener will receive object with the following structure:
|
|
|
|
* {{
|
|
|
|
* jid: jid //the jid of the participant
|
|
|
|
* }}
|
|
|
|
* participantLeft - receives event notifications about the participant that
|
|
|
|
* left the room.
|
|
|
|
* The listener will receive object with the following structure:
|
|
|
|
* {{
|
|
|
|
* jid: jid //the jid of the participant
|
|
|
|
* }}
|
|
|
|
* video-conference-joined - receives event notifications about the local
|
|
|
|
* user has successfully joined the video conference.
|
|
|
|
* The listener will receive object with the following structure:
|
|
|
|
* {{
|
|
|
|
* roomName: room //the room name of the conference
|
|
|
|
* }}
|
|
|
|
* video-conference-left - receives event notifications about the local user
|
|
|
|
* has left the video conference.
|
|
|
|
* The listener will receive object with the following structure:
|
|
|
|
* {{
|
|
|
|
* roomName: room //the room name of the conference
|
|
|
|
* }}
|
|
|
|
* readyToClose - all hangup operations are completed and Jitsi Meet is
|
|
|
|
* ready to be disposed.
|
2017-04-03 15:48:46 +00:00
|
|
|
* @returns {void}
|
2017-03-31 16:38:44 +00:00
|
|
|
*
|
2017-04-03 15:48:46 +00:00
|
|
|
* @deprecated
|
2017-03-31 16:38:44 +00:00
|
|
|
* NOTE: This method is not removed for backward comatability purposes.
|
2017-03-30 21:15:56 +00:00
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
addEventListeners(listeners) {
|
|
|
|
for (const event in listeners) { // eslint-disable-line guard-for-in
|
|
|
|
this.addEventListener(event, listeners[event]);
|
2017-03-30 21:15:56 +00:00
|
|
|
}
|
2016-06-17 20:35:40 +00:00
|
|
|
}
|
2017-03-30 21:15:56 +00:00
|
|
|
|
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Removes the listeners and removes the Jitsi Meet frame.
|
2017-03-31 16:38:44 +00:00
|
|
|
*
|
2017-04-03 15:48:46 +00:00
|
|
|
* @returns {void}
|
2017-03-30 21:15:56 +00:00
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
dispose() {
|
2017-04-18 03:17:23 +00:00
|
|
|
this._transport.dispose();
|
2017-04-18 22:54:56 +00:00
|
|
|
this.removeAllListeners();
|
|
|
|
if (this.iframeHolder) {
|
2017-04-03 15:48:46 +00:00
|
|
|
this.iframeHolder.parentNode.removeChild(this.iframeHolder);
|
2017-04-18 22:54:56 +00:00
|
|
|
}
|
2017-01-18 19:24:30 +00:00
|
|
|
}
|
2016-06-17 20:35:40 +00:00
|
|
|
|
2017-03-30 21:15:56 +00:00
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Executes command. The available commands are:
|
|
|
|
* displayName - sets the display name of the local participant to the value
|
|
|
|
* passed in the arguments array.
|
|
|
|
* toggleAudio - mutes / unmutes audio with no arguments.
|
|
|
|
* toggleVideo - mutes / unmutes video with no arguments.
|
2017-04-10 17:59:44 +00:00
|
|
|
* toggleFilmStrip - hides / shows the filmstrip with no arguments.
|
2017-04-03 15:48:46 +00:00
|
|
|
* If the command doesn't require any arguments the parameter should be set
|
|
|
|
* to empty array or it may be omitted.
|
|
|
|
*
|
|
|
|
* @param {string} name - The name of the command.
|
|
|
|
* @returns {void}
|
2017-03-30 21:15:56 +00:00
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
executeCommand(name, ...args) {
|
|
|
|
if (!(name in commands)) {
|
|
|
|
logger.error('Not supported command name.');
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
2017-04-18 03:17:23 +00:00
|
|
|
this._transport.sendEvent({
|
2017-04-27 20:21:01 +00:00
|
|
|
data: args,
|
|
|
|
name: commands[name]
|
2017-04-03 15:48:46 +00:00
|
|
|
});
|
2016-06-17 20:35:40 +00:00
|
|
|
}
|
|
|
|
|
2017-03-30 21:15:56 +00:00
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Executes commands. The available commands are:
|
|
|
|
* displayName - sets the display name of the local participant to the value
|
|
|
|
* passed in the arguments array.
|
|
|
|
* toggleAudio - mutes / unmutes audio. no arguments
|
|
|
|
* toggleVideo - mutes / unmutes video. no arguments
|
2017-04-10 17:59:44 +00:00
|
|
|
* toggleFilmStrip - hides / shows the filmstrip. no arguments
|
2017-04-03 15:48:46 +00:00
|
|
|
* toggleChat - hides / shows chat. no arguments.
|
|
|
|
* toggleContactList - hides / shows contact list. no arguments.
|
|
|
|
* toggleShareScreen - starts / stops screen sharing. no arguments.
|
|
|
|
*
|
|
|
|
* @param {Object} commandList - The object with commands to be executed.
|
|
|
|
* The keys of the object are the commands that will be executed and the
|
|
|
|
* values are the arguments for the command.
|
|
|
|
* @returns {void}
|
2017-03-30 21:15:56 +00:00
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
executeCommands(commandList) {
|
|
|
|
for (const key in commandList) { // eslint-disable-line guard-for-in
|
|
|
|
this.executeCommand(key, commandList[key]);
|
2017-03-30 21:15:56 +00:00
|
|
|
}
|
|
|
|
}
|
2016-06-17 20:35:40 +00:00
|
|
|
|
2017-03-30 21:15:56 +00:00
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Returns the number of participants in the conference. The local
|
|
|
|
* participant is included.
|
|
|
|
*
|
|
|
|
* @returns {int} The number of participants in the conference.
|
2017-03-30 21:15:56 +00:00
|
|
|
*/
|
|
|
|
getNumberOfParticipants() {
|
|
|
|
return this.numberOfParticipants;
|
|
|
|
}
|
2017-01-18 19:20:32 +00:00
|
|
|
|
2017-03-30 21:15:56 +00:00
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Removes event listener.
|
|
|
|
*
|
|
|
|
* @param {string} event - The name of the event.
|
|
|
|
* @returns {void}
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
* NOTE: This method is not removed for backward comatability purposes.
|
2017-03-30 21:15:56 +00:00
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
removeEventListener(event) {
|
2017-04-18 22:54:56 +00:00
|
|
|
this.removeAllListeners(event);
|
2017-03-30 21:15:56 +00:00
|
|
|
}
|
2017-01-18 19:20:32 +00:00
|
|
|
|
2017-03-30 21:15:56 +00:00
|
|
|
/**
|
2017-04-03 15:48:46 +00:00
|
|
|
* Removes event listeners.
|
|
|
|
*
|
|
|
|
* @param {Array<string>} eventList - Array with the names of the events.
|
|
|
|
* @returns {void}
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
* NOTE: This method is not removed for backward comatability purposes.
|
2017-03-30 21:15:56 +00:00
|
|
|
*/
|
2017-04-03 15:48:46 +00:00
|
|
|
removeEventListeners(eventList) {
|
|
|
|
eventList.forEach(event => this.removeEventListener(event));
|
2017-03-30 21:15:56 +00:00
|
|
|
}
|
|
|
|
}
|
2016-06-17 20:35:40 +00:00
|
|
|
|
|
|
|
module.exports = JitsiMeetExternalAPI;
|