feat: Instant Meeting (#12345)
Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
42 files changed
+1328
-79
No files matched your search
@@ -204,6 +204,28 @@ const createMeetingWithCalVideo = async (calEvent: CalendarEvent) => {
|
||||
return videoAdapter?.createMeeting(calEvent);
|
||||
};
|
||||
|
||||
export const createInstantMeetingWithCalVideo = async (endTime: string) => {
|
||||
let dailyAppKeys: Awaited<ReturnType<typeof getDailyAppKeys>>;
|
||||
try {
|
||||
dailyAppKeys = await getDailyAppKeys();
|
||||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
const [videoAdapter] = await getVideoAdapters([
|
||||
{
|
||||
id: 0,
|
||||
appId: "daily-video",
|
||||
type: "daily_video",
|
||||
userId: null,
|
||||
user: { email: "" },
|
||||
teamId: null,
|
||||
key: dailyAppKeys,
|
||||
invalid: false,
|
||||
},
|
||||
]);
|
||||
return videoAdapter?.createInstantCalVideoRoom?.(endTime);
|
||||
};
|
||||
|
||||
const getRecordingsOfCalVideoByRoomName = async (
|
||||
roomName: string
|
||||
): Promise<GetRecordingsResponseSchema | undefined> => {
|
||||
|
||||
Reference in new issue
Block a user