diff --git a/modules/API/API.js b/modules/API/API.js index c35e7abbd..e2d4123ff 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.js index ad457406e..4211c97c9 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',