diff --git a/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts b/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts index 3910706a72..4442727595 100644 --- a/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts +++ b/packages/app-store/dailyvideo/lib/VideoApiAdapter.ts @@ -208,6 +208,9 @@ const DailyVideoApiAdapter = (): VideoApiAdapter => { async function createInstantMeeting(endTime: string) { // added a 1 hour buffer for room expiration const exp = Math.round(new Date(endTime).getTime() / 1000) + 60 * 60; + const { scale_plan: scalePlan } = await getDailyAppKeys(); + + const isScalePlanTrue = scalePlan === "true"; const body = { privacy: "public", @@ -217,9 +220,14 @@ const DailyVideoApiAdapter = (): VideoApiAdapter => { enable_screenshare: true, enable_chat: true, exp: exp, - enable_recording: "cloud", + enable_recording: isScalePlanTrue ? "cloud" : undefined, start_video_off: true, - enable_transcription_storage: true, + enable_transcription_storage: isScalePlanTrue, + ...(!!isScalePlanTrue && { + permissions: { + canAdmin: ["transcription"], + }, + }), }, };