on Webcam Requested
Called when a remote participant requests the local participant to enable their webcam.
Use the provided WebcamRequestListener to accept or reject the request.
Code Example:
override fun onWebcamRequested(participantId: String, listener: WebcamRequestListener) {
// Show UI asking user to accept/reject
listener.accept() // or listener.reject()
}
Content copied to clipboard
Parameters
participant Id
the ID of the participant who made the request
listener
the WebcamRequestListener to accept or reject the request
See also
Participant.enableWebcam()