Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(recording): enable consent dialog on spot (#16179)

Andrei Gavrilescu343843821907
diff --git a/config.js b/config.js
index 1c414296ae..7bbead8f7a 100644
--- a/config.js
+++ b/config.js
@@ -117,6 +117,11 @@ var config = {
// Will replace ice candidates IPs with invalid ones in order to fail ice.
// failICE: true,
+
+ // When running on Spot TV, this controls whether to show the recording consent dialog.
+ // If false (default), Spot instances will not show the recording consent dialog.
+ // If true, Spot instances will show the recording consent dialog like regular clients.
+ // showSpotConsentDialog: false,
},
// Disables moderator indicators.
diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.ts
index 83ead18f81..5bc960cd0c 100644
--- a/react/features/base/config/configType.ts
+++ b/react/features/base/config/configType.ts
@@ -596,6 +596,7 @@ export interface IConfig {
failICE?: boolean;
noAutoPlayVideo?: boolean;
p2pTestMode?: boolean;
+ showSpotConsentDialog?: boolean;
skipInterimTranscriptions?: boolean;
testMode?: boolean;
};
diff --git a/react/features/recording/functions.ts b/react/features/recording/functions.ts
index 6320e84187..11b85e35ce 100644
--- a/react/features/recording/functions.ts
+++ b/react/features/recording/functions.ts
@@ -443,14 +443,16 @@ export function shouldRequireRecordingConsent(recorderSession: any, state: IRedu
= state['features/dynamic-branding'] || {};
const { conference } = state['features/base/conference'] || {};
const { requireConsent, skipConsentInMeeting } = state['features/base/config'].recordings || {};
- const { iAmRecorder } = state['features/base/config'];
+ const { iAmRecorder, testing: { showSpotConsentDialog = false } = {} } = state['features/base/config'];
const { consentRequested } = state['features/recording'];
if (iAmRecorder) {
return false;
}
- if (isSpotTV(state)) {
+ // For Spot TV instances, check the showSpotConsentDialog config parameter
+ // If showSpotConsentDialog is false (or undefined, defaulting to false), don't show consent dialog
+ if (isSpotTV(state) && !showSpotConsentDialog) {
return false;
}