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
object
onParticipantJoined(participant)optional
callback
onParticipantLeft(participant)optional
callback
onSpeakerChanged(activeSpeakerId)optional
callback
onPresenterChanged(presenterId)optional
callback
onMainParticipantChanged(participant)optional
callback
onEntryRequested(participantId, name)optional
callback
onEntryResponded(participantId, name)optional
callback
onRecordingStarted()optional
callback
onRecordingStopped()optional
callback
onChatMessage(data)optional
callback
onMeetingJoined()optional
callback
onMeetingLeft()optional
callback
onPinStateChanged()optional
event
function as childoptional
function
You can subscribe to all the function and properties.
Parameters
Got a Question? Ask us on discord