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(api): Expose event used for sending browser support
Vlad Piersec0bf52b613b86
diff --git a/modules/API/API.js b/modules/API/API.jsindex c35e7abbdb..e2d4123ffc 100644--- a/modules/API/API.js+++ b/modules/API/API.js@@ -15,6 +15,7 @@ import {} from '../../react/features/base/conference';import { overwriteConfig, getWhitelistedJSON } from '../../react/features/base/config';import { toggleDialog } from '../../react/features/base/dialog/actions';+import { isSupportedBrowser } from '../../react/features/base/environment';import { parseJWTFromURLParams } from '../../react/features/base/jwt';import JitsiMeetJS, { JitsiRecordingConstants } from '../../react/features/base/lib-jitsi-meet';import { MEDIA_TYPE } from '../../react/features/base/media';@@ -692,6 +693,7 @@ class API {this._enabled = true;initCommands();+ this.notifyBrowserSupport(isSupportedBrowser());}/**@@ -1355,6 +1357,19 @@ class API {});}+ /**+ * Notify external application (if API is enabled) wether the used browser is supported or not.+ *+ * @param {boolean} supported - If browser is supported or not.+ * @returns {void}+ */+ notifyBrowserSupport(supported: boolean) {+ this._sendEvent({+ name: 'browser-support',+ supported+ });+ }+/*** Disposes the allocated resources.*diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.jsindex ad457406ed..4211c97c98 100644--- a/modules/API/external/external_api.js+++ b/modules/API/external/external_api.js@@ -76,6 +76,7 @@ const events = {'avatar-changed': 'avatarChanged','audio-availability-changed': 'audioAvailabilityChanged','audio-mute-status-changed': 'audioMuteStatusChanged',+ 'browser-support': 'browserSupport','camera-error': 'cameraError','chat-updated': 'chatUpdated','content-sharing-participants-changed': 'contentSharingParticipantsChanged',