I have both Jitsi Meet and Jitsi Meet Electron running in development mode. They are on the same conference call. I want to send an Endpoint Message from the Web version to the Electron version and vice-versa but the event this._api.on(‘endpointTextMessageReceived’, () => console.log(‘test’)); is not responding in the Electron Conference.js and instead web event is triggered.
Can I somehow implement communication between both versions where they behave differently on the same event? Thanks.
@saghul
In the web version I am using:
APP.conference.sendEndpointMessage(’’, data);
inside the conference.js.
In the Electron version I used
this._api.executeCommand(‘sendEndpointTextMessage’, ‘’, data);
but that wasn’t working.
Are they different types of communications? if so, is there a way to override the behavior of event JitsiConferenceEvents.ENDPOINT_MESSAGE_RECEIVED in Electron? alternatively, can I access the APP object in Electron?
@saghul I am using jitsi-meet master in development mode and Jitsi development server https://alpha.jitsi.net . I am confused about the differences in these API commands. How are they different from each other?
@saghul thank you for a response.
So is there a way to trigger different event on messages received in Electron than in Web?
for example, In Web I am using:
room.on(JitsiConferenceEvents.ENDPOINT_MESSAGE_RECEIVED, (…args) => {
…
console.log('Web version: ', eventData);
…
}):
and in Electron I used:
this._api.on(‘endpointTextMessageReceived’, (user, eventData) => {
console.log('Electron version: ', eventData);
});
On the sendEndpointTextMessage, there is only a Web version triggered. Is there an alternative way of achieving this?