Enhance startMeeting function to accept optional metadata and recording URL parameters
Update the startMeeting function in appointments.ts to include optional parameters for metadata and recording URL. This enhancement allows for more flexible meeting initiation by enabling additional context and resources to be passed during the meeting start process.
This commit is contained in:
parent
61f7f5cf1a
commit
aecde6ce69
@ -738,7 +738,13 @@ export async function getJitsiMeetingInfo(id: string): Promise<JitsiMeetingInfo>
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function startMeeting(id: string): Promise<Appointment> {
|
||||
export async function startMeeting(
|
||||
id: string,
|
||||
options?: {
|
||||
metadata?: string;
|
||||
recording_url?: string;
|
||||
}
|
||||
): Promise<Appointment> {
|
||||
const tokens = getStoredTokens();
|
||||
if (!tokens.access) {
|
||||
throw new Error("Authentication required.");
|
||||
@ -750,6 +756,11 @@ export async function startMeeting(id: string): Promise<Appointment> {
|
||||
"Content-Type": "application/json",
|
||||
Authorization: `Bearer ${tokens.access}`,
|
||||
},
|
||||
body: JSON.stringify({
|
||||
action: "start",
|
||||
metadata: options?.metadata,
|
||||
recording_url: options?.recording_url,
|
||||
}),
|
||||
});
|
||||
|
||||
const data = await parseResponse(response);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user