Participant Class
Introduction
The Participant Class includes methods and events for participants and their associated video & audio streams, data channels and UI customization.
Properties
getId()
getId()will return participant's Id- return type :
String
getDisplayName()
getDisplayName()will return name of participant- return type :
String
getQuality()
getQuality()will return quality of participant's video stream- return type :
String
isLocal()
isLocal()will returntrueif participant is Local,falseotherwise- return type :
boolean
getStreams()
getStreams()will return streams of participant- return type :
Map<String, Stream> - Map contains
streamIdas key andstreamas value
Events
addEventListener(ParticipantEventListener listener)
- By using
addEventListener(ParticipantEventListener listener), we can add listener to the List ofParticipantEventListener - return type :
void
removeEventListener(ParticipantEventListener listener)
- By using
removeEventListener(ParticipantEventListener listener), we can remove listener from List ofParticipantEventListener - return type :
void
removeAllListeners()
- By using
removeAllListeners(), we can remove all listener from List - return type :
void
Methods
enableMic()
- By using
enableMic()function, a participant can enable the Mic of any particular Remote Participant - When
enableMic()is called,- Local Participant will receive a callback on
streamEnabled()ofParticipantEventListenerclass - Remote Participant will receive a callback for
onMicRequested()and once the remote participant accepts the request, mic will be enabled for that participant
- Local Participant will receive a callback on
- return type :
void
disableMic()
- By using
disableMic()function, a participant can disable the Mic of any particular Remote Participant - When
enableMic()is called,- Local Participant will receive a callback on
streamDisabled()ofParticipantEventListenerclass - Remote Participant will receive a callback on
streamDisabled()ofParticipantEventListenerclass
- Local Participant will receive a callback on
- return type :
void
enableWebcam()
- By using
enableWebcam()function, a participant can enable the Webcam of any particular Remote Participant - When
enableWebcam()is called,- Local Participant will receive a callback on
streamEnabled()ofParticipantEventListenerclass - Remote Participant will receive a callback for
webcamRequested()and once the remote participant accepts the request, webcam will be enabled for that participant
- Local Participant will receive a callback on
- return type :
void
disableWebcam()
- By using
disableWebcam()function, a participant can disable the Webcam of any particular Remote Participant - When
disableWebcam()is called,- Local Participant will receive a callback on
streamDisabled()ofParticipantEventListenerclass - Remote Participant will receive a callback on
streamDisabled()ofParticipantEventListenerclass
- Local Participant will receive a callback on
- return type :
void
remove()
- By using
remove()function, a participant can remove any particular Remote Participant - When
remove()is called,- Local Participant will receive a callback on
meetingLeft() - Remote Participant will receive a callback on
participantLeft()
- Local Participant will receive a callback on
- return type :
void
setQuality()
- By using
setQuality(),you can set quality of participant's video stream - return type :
void
Got a Question? Ask us on discord

