Auto recording to cloud not working
I want any user to be able to create meetings. The meetings will be auto-recorded. When the meeting is over, the videos will be saved to the cloud. I can download/watch them from the cloud later.
I have subscribed.
Plan: Workplace Business
My Settings
Automatic recording → Record in the cloud
I have my code:
// ============= CREATE ZOOM MEETING =============
type TCreateMeeting = {
hostUserId: string;
topic: string;
duration?: number;
};
async function createZoomMeeting({
hostUserId,
topic,
duration = 60,
}: TCreateMeeting) {
try {
const token = await getZoomAccessToken();
const meetingData: any = {
topic,
type: 2,
start_time: new Date().toISOString(),
duration,
settings: {
host_video: true,
participant_video: true,
join_before_host: true,
mute_upon_entry: false,
auto_recording: "cloud",
waiting_room: false,
recording_audio_transcript: true,
},
};
const response = await axios.post(
`${ZOOM_BASE_API}/users/${hostUserId}/meetings`,
meetingData,
{
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
}
);
return response.data;
} catch (error: any) {
handleZoomError(error, "createZoomMeeting");
}
}
auto_recording: “cloud”
If I use it, auto recording is not happening
auto_recording: “local”
If I use this, recording is happening
how to solve this problem?