Optional
onThe options for muting participants.
Optional
onSends a direct message to a participant if the current member has the necessary permissions.
The options for messaging participants.
messageParticipants({
coHostResponsibility: [{ name: "chat", value: true }],
participant: { name: "John Doe", islevel: "1" },
member: "currentMember",
islevel: "2",
showAlert: (alert) => console.log(alert.message),
coHost: "coHostMember",
updateIsMessagesModalVisible: (isVisible) => setMessagesModalVisible(isVisible),
updateDirectMessageDetails: (participant) => setDirectMessageDetails(participant),
updateStartDirectMessage: (start) => setStartDirectMessage(start),
});
Optional
onRemoves a participant from the room if the user has the necessary permissions.
The options for removing a participant.
removeParticipants({
coHostResponsibility: [{ name: "participants", value: true }],
participant: { id: "123", name: "John Doe", islevel: "1" },
member: "currentMember",
islevel: "2",
showAlert: (alert) => console.log(alert.message),
coHost: "coHostMember",
participants: [{ id: "123", name: "John Doe", islevel: "1" }],
socket,
roomName: "room1",
updateParticipants: (updatedParticipants) => console.log(updatedParticipants),
});
Optional
RenderOptional
RenderOptional
backgroundOptional
position
Mutes a participant in a media session if the current member has the necessary permissions.