Skip to content

Commit

Permalink
feat(config) add option to show recording link (jitsi#15336)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihhu authored Nov 27, 2024
1 parent f3324ab commit 4d7c051
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ var config = {
// // If true, shows a warning label in the prejoin screen to point out the possibility that
// // the call you're joining might be recorded.
// // showPrejoinWarning: true,
// // If true, the notification for recording start will display a link to download the cloud recording.
// // showRecordingLink: true,
// },

// recordingService: {
Expand Down
1 change: 1 addition & 0 deletions react/features/base/config/configType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ export interface IConfig {
recordings?: {
recordAudioAndVideo?: boolean;
showPrejoinWarning?: boolean;
showRecordingLink?: boolean;
suggestRecording?: boolean;
};
remoteVideoMenu?: {
Expand Down
2 changes: 2 additions & 0 deletions react/features/recording/actions.any.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ export function showStartedRecordingNotification(
if (mode !== JitsiMeetJS.constants.recording.mode.STREAM) {
const recordingSharingUrl = getRecordingSharingUrl(state);
const iAmRecordingInitiator = getLocalParticipant(state)?.id === initiatorId;
const { showRecordingLink } = state['features/base/config'].recordings || {};

notifyProps.dialogProps = {
customActionHandler: undefined,
Expand All @@ -273,6 +274,7 @@ export function showStartedRecordingNotification(
if (recordingSharingUrl
&& isVpaasMeeting(state)
&& iAmRecordingInitiator
&& showRecordingLink
&& !isSavingRecordingOnDropbox(state)) {
const region = getMeetingRegion(state);
const tenant = getVpaasTenant(state);
Expand Down

0 comments on commit 4d7c051

Please sign in to comment.