Meeting Consumer
Using meeting consumer
A React component that subscribes to context changes. Meeting Consumer updated to every change in the instance of meeting, participant and streams.
It requires function as child. The function receives the current context value and returns a React node.
Meeting Provider
<MeetingConsumer
{...{
onParticipantJoined: (participant) => {
setParticipant(participant);
},
}}
>
{({ meetingId }) => {
return <MeetingView />;
}}
</MeetingConsumer>
Parameters
__namedParametersrequired
objectonParticipantJoined(participant)optional
callbackonParticipantLeft(participant)optional
callbackonSpeakerChanged(activeSpeakerId)optional
callbackonPresenterChanged(presenterId)optional
callbackonMainParticipantChanged(participant)optional
callbackonEntryRequested(participantId, name)optional
callbackonEntryResponded(participantId, name)optional
callbackonRecordingStarted()optional
callbackonRecordingStopped()optional
callbackonChatMessage(data)optional
callbackonMeetingJoined()optional
callbackonMeetingLeft()optional
callbackonPinStateChanged()optional
eventfunction as childoptional
functionYou can subscribe to all the function and properties.
Parameters
Got a Question? Ask us on discord

