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(notifications): Manage audio notifications
Horatiu Muresan7f1eb83dbd5c
diff --git a/config.js b/config.jsindex 57cf31d25f..326e4ac999 100644--- a/config.js+++ b/config.js@@ -390,6 +390,9 @@ var config = {// userRegion: "asia"},+ // Decides whether the start/stop recording audio notifications should play on record.+ // disableRecordAudioNotification: false,+// Information for the chrome extension banner// chromeExtensionBanner: {// // The chrome extension to be installed addressdiff --git a/react/features/base/config/configWhitelist.js b/react/features/base/config/configWhitelist.jsindex 845883d5de..7570499328 100644--- a/react/features/base/config/configWhitelist.js+++ b/react/features/base/config/configWhitelist.js@@ -1,3 +1,5 @@+import extraConfigWhitelist from './extraConfigWhitelist';+/*** The config keys to whitelist, the keys that can be overridden.* Currently we can only whitelist the first part of the properties, like@@ -145,4 +147,4 @@ export default ['useStunTurn','webrtcIceTcpDisable','webrtcIceUdpDisable'-];+].concat(extraConfigWhitelist);diff --git a/react/features/base/config/extraConfigWhitelist.js b/react/features/base/config/extraConfigWhitelist.jsnew file mode 100644index 0000000000..d66fc0ae36--- /dev/null+++ b/react/features/base/config/extraConfigWhitelist.js@@ -0,0 +1,4 @@+/**+ * Deploy-specific configuration whitelists+ */+export default [];diff --git a/react/features/recording/middleware.js b/react/features/recording/middleware.jsindex dbdc1a2539..2ab53300ed 100644--- a/react/features/recording/middleware.js+++ b/react/features/recording/middleware.js@@ -130,7 +130,8 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {// but we want to indicate those in case of sip gatewayconst {iAmRecorder,- iAmSipGateway+ iAmSipGateway,+ disableRecordAudioNotification} = getState()['features/base/config'];if (iAmRecorder && !iAmSipGateway) {@@ -153,6 +154,11 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {const initiatorName = initiator && getParticipantDisplayName(getState, initiator.getId());initiatorName && dispatch(showStartedRecordingNotification(mode, initiatorName));+ sendAnalytics(createRecordingEvent('start', mode));++ if (disableRecordAudioNotification) {+ break;+ }let soundID;@@ -163,7 +169,6 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {}if (soundID) {- sendAnalytics(createRecordingEvent('start', mode));dispatch(playSound(soundID));}} else if (updatedSessionData.status === OFF@@ -176,6 +181,11 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {duration= (Date.now() / 1000) - oldSessionData.timestamp;}+ sendAnalytics(createRecordingEvent('stop', mode, duration));++ if (disableRecordAudioNotification) {+ break;+ }if (mode === JitsiRecordingConstants.mode.FILE) {soundOff = RECORDING_OFF_SOUND_ID;@@ -186,7 +196,6 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {}if (soundOff && soundOn) {- sendAnalytics(createRecordingEvent('stop', mode, duration));dispatch(stopSound(soundOn));dispatch(playSound(soundOff));}