Whether the modal is currently visible
Callback when modal is closed
Callback for search/filter changes
Total participant count for display
Action Handlers:
OptionalonFunction 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.
OptionalonFunction 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),
});
OptionalonFunction 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),
});
OptionalRenderCustom component for main participant list
OptionalRenderCustom component for other participants list
State Parameters:
State and context parameters
Advanced Render Overrides:
OptionalbackgroundModal background color
Participant Management:
OptionalpositionModal position
OptionalstyleCustom styles for modal container
OptionalrenderFunction to wrap or replace modal content
OptionalrenderFunction to wrap or replace modal container
Interface defining the options for the ParticipantsModal component.
ParticipantsModalOptions
Display Control: