Whether the modal is currently visible
Callback when modal is closed
Callback for search/filter changes
Total participant count for display
Action Handlers:
Optional
onFunction to mute participants (default: muteParticipants)
Mutes a participant in a media session if the current member has the necessary permissions.
The options for muting participants.
Optional
onFunction to message participants (default: messageParticipants)
Sends 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
onFunction to remove participants (default: removeParticipants)
Custom Renderers:
Removes 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
RenderCustom component for main participant list
Optional
RenderCustom component for other participants list
State Parameters:
State and context parameters
Advanced Render Overrides:
Optional
backgroundModal background color
Participant Management:
Optional
positionModal position
Optional
styleCustom styles for modal container
Optional
renderFunction to wrap or replace modal content
Optional
renderFunction to wrap or replace modal container
Interface defining the options for the ParticipantsModal component.
ParticipantsModalOptions
Display Control: