File tree 1 file changed +10
-2
lines changed
packages/app-store/dailyvideo/lib
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,9 @@ const DailyVideoApiAdapter = (): VideoApiAdapter => {
208
208
async function createInstantMeeting ( endTime : string ) {
209
209
// added a 1 hour buffer for room expiration
210
210
const exp = Math . round ( new Date ( endTime ) . getTime ( ) / 1000 ) + 60 * 60 ;
211
+ const { scale_plan : scalePlan } = await getDailyAppKeys ( ) ;
212
+
213
+ const isScalePlanTrue = scalePlan === "true" ;
211
214
212
215
const body = {
213
216
privacy : "public" ,
@@ -217,9 +220,14 @@ const DailyVideoApiAdapter = (): VideoApiAdapter => {
217
220
enable_screenshare : true ,
218
221
enable_chat : true ,
219
222
exp : exp ,
220
- enable_recording : "cloud" ,
223
+ enable_recording : isScalePlanTrue ? "cloud" : undefined ,
221
224
start_video_off : true ,
222
- enable_transcription_storage : true ,
225
+ enable_transcription_storage : isScalePlanTrue ,
226
+ ...( ! ! isScalePlanTrue && {
227
+ permissions : {
228
+ canAdmin : [ "transcription" ] ,
229
+ } ,
230
+ } ) ,
223
231
} ,
224
232
} ;
225
233
You can’t perform that action at this time.
0 commit comments