onWebcamRequested

fun onWebcamRequested(participantId: String, listener: WebcamRequestListener)

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()
}

Parameters

participantId

the ID of the participant who made the request

listener

the WebcamRequestListener to accept or reject the request

See also

Participant.enableWebcam()