-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CAL-3943] Zoom integration doesn't follow the zoom app settings for auto-record #15474
Comments
To ensure that meetings scheduled via Cal.com follow the Zoom app settings for auto-recording, you need to modify the Here is the relevant part of the code with the modification: const translateEvent = (event: CalendarEvent) => {
const getRecurrence = ({
recurringEvent,
startTime,
attendees,
}: CalendarEvent): { recurrence: ZoomRecurrence; type: 8 } | undefined => {
if (!recurringEvent) {
return;
}
let recurrence: ZoomRecurrence;
switch (recurringEvent.freq) {
case Frequency.DAILY:
recurrence = {
type: 1,
};
break;
case Frequency.WEEKLY:
recurrence = {
type: 2,
weekly_days: dayjs(startTime).tz(attendees[0].timeZone).day() + 1,
};
break;
case Frequency.MONTHLY:
recurrence = {
type: 3,
monthly_day: dayjs(startTime).tz(attendees[0].timeZone).date(),
};
break;
default:
return;
}
recurrence.repeat_interval = recurringEvent.interval;
if (recurringEvent.until) {
recurrence.end_date_time = recurringEvent.until.toISOString();
} else {
recurrence.end_times = recurringEvent.count;
}
return {
recurrence: {
...recurrence,
},
type: 8,
};
};
const recurrence = getRecurrence(event);
return {
topic: event.title,
type: 2,
start_time: dayjs(event.startTime).utc().format(),
duration: (new Date(event.endTime).getTime() - new Date(event.startTime).getTime()) / 60000,
timezone: event.organizer.timeZone,
agenda: event.description,
settings: {
host_video: true,
participant_video: true,
cn_meeting: false,
in_meeting: false,
join_before_host: true,
mute_upon_entry: false,
watermark: false,
use_pmi: false,
approval_type: 2,
audio: "both",
auto_recording: "cloud", // Change this to "local" or "cloud" as per your Zoom settings
enforce_login: false,
registrants_email_notification: true,
},
...recurrence,
};
}; By setting |
/attempt @milospuac This issue can be assigned to me, i am working on this -
|
Hey bud - we don't assign issues but please feel free to work on it and submit a PR |
sure @sean-brydon Thankyou! |
@sgriff96-brydon I think it also doesn't follow the password settings set in zoom. Link generated through Cal.com booking doesn't respect the password settings for the meeting. Can you include it into this one as well? |
@sean-brydon , this is generic implementation any future zoom user setting required can be easily updated. |
From SyncLinear.com | CAL-3943
The text was updated successfully, but these errors were encountered: