I'm developing a standard video call application using Jitsi; I want an additional feature to let the other party know something lik "I'll be late a few minutes" Jitsi has a built-in text chatting; but I don't know how it can be used outside the Jitsi call.
Asked
Active
Viewed 2,684 times
1 Answers
0
- You can develop with "external_api.js". when current user joined the video jitsi triggers
participantJoined - event notifications about new participants who join the room. The listener will receive an object with the following structure:
api.on(‘participantJoined’, (object) => join(object.id));
method will be triggered for each participant. Collect and store the participant "id"'s from there. Then use
sendEndpointTextMessage - Sends a text message to another participant through the datachannels.
api.executeCommand('sendEndpointTextMessage', 'receiverParticipantId', 'text');
this method for sending messages for each participant.
- You can develop with "lib-jitsi-meet"(lib-jitsi-meet) library and then you can use "sendTextMessage(text)" function.

HOO
- 11
- 3
-
Using the "external_api.js", the command does not work properly for me. It get's sent (log in the console: [modules/API/API.js]
: Send endpoint message command received), but no message arrives anywhere. I've been using this basic example and sent the following command via the browser's console: "api.executeCommand('sendEndpointTextMessage', '9c4678ff', 'lorem ipsum')"; I got the participant ID as you described in your post. I also tried to leave the second argument empty ('') as suggested here. Still no message anywhere. What am I doing wrong? – Peter Oct 09 '20 at 19:42 -
I would like to achieve exactly the same thing. Need to give notification to all participants just like in a way when it gives notification when someone raise a hand. No luck yet. – Vishu7 Oct 12 '20 at 11:05