Skip to main content

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

  • __namedParametersrequiredobject

      Parameters
    • onParticipantJoined(participant)optionalcallback

    • onParticipantLeft(participant)optionalcallback

    • onSpeakerChanged(activeSpeakerId)optionalcallback

    • onPresenterChanged(presenterId)optionalcallback

    • onMainParticipantChanged(participant)optionalcallback

    • onEntryRequested(participantId, name)optionalcallback

    • onEntryResponded(participantId, name)optionalcallback

    • onRecordingStarted()optionalcallback

    • onRecordingStopped()optionalcallback

    • onChatMessage(data)optionalcallback

    • onMeetingJoined()optionalcallback

    • onMeetingLeft()optionalcallback

    • onPinStateChanged()optionalevent

    • function as childoptionalfunction

      You can subscribe to all the function and properties.

Got a Question? Ask us on discord