Participant Class Methods - React Native
enableWebcam()
enableWebcam()is used to enable participant's camera.
Events associated with enableWebcam() :
-
First the participant will get a callback on onWebcamRequested() and once the participant accepts the request, webcam will be enabled.
-
Every Participant will receive a
streamEnabledevent ofParticipantEventListenerClass withstreamobject.
Returns
void
disableWebcam()
disableWebcam()is used to disable participant camera.
Events associated with disableWebcam() :
- Every Participant will receive a
streamDisabledevent ofParticipantEventListenerClass withstreamobject.
Returns
void
enableMic()
enableMic()is used to enable participant microphone.
Events associated with enableMic() :
-
First the participant will get a callback on onMicRequested() and once the participant accepts the request, mic will be enabled.
-
Every Participant will receive a
streamEnabledevent ofParticipantEventListenerClass withstreamobject.
Returns
void
disableMic()
disableMic()is used to disable participant microphone.
Events associated with disableMic():
- Every Participant will receive a
streamDisabledevent ofParticipantEventListenerClass withstreamobject.
Returns
void
setQuality()
setQuality()is used to set the quality of the participant's video stream.
Parameters
quality: low | med | high
Returns
void
setViewPort()
setViewPort()is used to set the quality of the participant's video stream based on the viewport height and width.
Parameters
- width: int
- height: int
Returns
void
remove()
remove()is used to remove the participant from the meeting.
Events associated with remove() :
- Local participant will receive a
onMeetingLeftevent. - All remote participants will receive a
onParticipantLeftevent withparticipantId.
Returns
void
addEventListener()
Parameters
- listener: ParticipantEventListener
Returns
void
removeEventListener()
Parameters
- listener: ParticipantEventListener
Returns
void
removeAllListeners()
Returns
void
Got a Question? Ask us on discord

