Handles the end of a meeting by showing an alert and redirecting the user.
const options: MeetingEndedOptions = { showAlert: ({ message, type, duration }) => console.log(`Alert: ${message}, Type: ${type}, Duration: ${duration}`), redirectURL: "https://homepage.com", onWeb: true, eventType: "meeting",};await meetingEnded(options);// Output:// Alert: The event has ended. You will be redirected to the home page in 2 seconds., Type: danger, Duration: 2000// (Redirects to the specified URL after 2 seconds if on the web) Copy
const options: MeetingEndedOptions = { showAlert: ({ message, type, duration }) => console.log(`Alert: ${message}, Type: ${type}, Duration: ${duration}`), redirectURL: "https://homepage.com", onWeb: true, eventType: "meeting",};await meetingEnded(options);// Output:// Alert: The event has ended. You will be redirected to the home page in 2 seconds., Type: danger, Duration: 2000// (Redirects to the specified URL after 2 seconds if on the web)
The options for handling the meeting end.
A promise that resolves when the meeting end handling is complete.
Handles the end of a meeting by showing an alert and redirecting the user.
Example