The options for checking and handling the MediaSFU URL.
A promise that resolves when the actions are complete.
const options = {
data: {
mediasfuURL: "https://example.com/meet/room123/secret",
allowRecord: true,
apiKey: "1234567890123456789012345678901234567890123456789012345678901234",
apiUserName: "user123",
},
member: "user123",
roomName: "s12345678",
islevel: "1",
socket: socketInstance,
parameters: {
someParameter: "value",
},
};
try {
await checkMediasfuURL(options);
console.log("MediaSFU URL processed successfully.");
} catch (error) {
console.error("Failed to process MediaSFU URL:", error);
}
Checks the MediaSFU URL and processes the necessary actions based on the URL's validity.