Modifies the co-host settings for a given room.
const options: ModifyCoHostSettingsOptions = { roomName: "mainRoom", showAlert: (alert) => console.log(alert.message), selectedParticipant: "User123", coHost: "No coHost", coHostResponsibility: [{ name: "media", value: true }], updateIsCoHostModalVisible: setModalVisible, updateCoHostResponsibility: setCoHostResponsibility, updateCoHost: setCoHost, socket: socketInstance,};modifyCoHostSettings(options);// Sets User123 as the new co-host with specific responsibilities and emits the update event. Copy
const options: ModifyCoHostSettingsOptions = { roomName: "mainRoom", showAlert: (alert) => console.log(alert.message), selectedParticipant: "User123", coHost: "No coHost", coHostResponsibility: [{ name: "media", value: true }], updateIsCoHostModalVisible: setModalVisible, updateCoHostResponsibility: setCoHostResponsibility, updateCoHost: setCoHost, socket: socketInstance,};modifyCoHostSettings(options);// Sets User123 as the new co-host with specific responsibilities and emits the update event.
The options for modifying co-host settings.
A promise that resolves when the co-host settings have been modified.
Modifies the co-host settings for a given room.
Example