Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(external-api) Forward non participant message to iframe (#13440)
garysmith058277ca23c52bc
diff --git a/conference.js b/conference.jsindex 76cdf05591..950b3703ff 100644--- a/conference.js+++ b/conference.js@@ -2029,7 +2029,10 @@ export default {room.on(JitsiConferenceEvents.NON_PARTICIPANT_MESSAGE_RECEIVED,- (...args) => APP.store.dispatch(nonParticipantMessageReceived(...args)));+ (...args) => {+ APP.store.dispatch(nonParticipantMessageReceived(...args));+ APP.API.notifyNonParticipantMessageReceived(...args);+ });room.on(JitsiConferenceEvents.LOCK_STATE_CHANGED,diff --git a/modules/API/API.js b/modules/API/API.jsindex 2ca76340f0..cd328c8ac0 100644--- a/modules/API/API.js+++ b/modules/API/API.js@@ -2027,6 +2027,23 @@ class API {});}+ /**+ * Notify external application (if API is enabled) if non participant message+ * is received.+ *+ * @param {string} id - The resource id of the sender.+ * @param {Object} json - The json carried by the message.+ * @returns {void}+ */+ notifyNonParticipantMessageReceived(id, json) {+ this._sendEvent({+ name: 'non-participant-message-received',+ id,+ message: json+ });+ }++/*** Notify the external application (if API is enabled) if the connection type changed.*diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.jsindex 9e6fcf85f2..93fd03e36d 100644--- a/modules/API/external/external_api.js+++ b/modules/API/external/external_api.js@@ -128,6 +128,7 @@ const events = {'mouse-enter': 'mouseEnter','mouse-leave': 'mouseLeave','mouse-move': 'mouseMove',+ 'non-participant-message-received': 'nonParticipantMessageReceived','notification-triggered': 'notificationTriggered','outgoing-message': 'outgoingMessage','p2p-status-changed': 'p2pStatusChanged',