Add Custom Events for External API

HI,
I am working on Jitsi source code and modified code for web , mobile as per client needs.
They integrated jitsi through External API, now they wanted some custom events from video conference room to their web app like we have events and commands in External API.

So I need help. Can somebody give me the reference how to add custom events and use them as we use other External API events.

Thanks

The code flow starts here jitsi-meet/modules/API at master · jitsi/jitsi-meet · GitHub

HI,

Thank you so much for the prompt response. I want only an event which is an open workbook which I want to fire from the toolbar.

I made these changes but I am not able to catch this event when I integrated externalapi into the app.

Please guide what I am missing.

Thanks

API.js

/**

  • Notify external application (if API is enabled) that user changed their
  • WORKBOOK.
  • @returns {void}
    */
    openWorkBook() {
    this._sendEvent({
    name: ‘open-workbook’
    });
    }

external_api.js

const events = {
‘avatar-changed’: ‘avatarChanged’,
‘audio-availability-changed’: ‘audioAvailabilityChanged’,

‘open-workbook’: ‘openWorkBook’,
};

Toolbox.js
_onOpenWorkBook() {
APP.API.openWorkBook();
console.log(‘OPEN WORKBOOK’);
}

You rebuild and redeployed it app?

1 Like