onMediaRelayRequestReceived

fun onMediaRelayRequestReceived(participantId: String, liveStreamId: String, displayName: String, listener: RelayRequestListener)

Called when a media relay request is received from another meeting.

Use the provided RelayRequestListener to accept or reject the relay request.

Code Example:


override fun onMediaRelayRequestReceived(participantId: String, liveStreamId: String,
        displayName: String, listener: RelayRequestListener) {
    // Show UI to accept/reject relay request
    listener.accept()  // or listener.reject()
}

Parameters

participantId

the ID of the participant requesting the relay

liveStreamId

the livestream ID associated with the relay

displayName

the display name of the requester

listener

the RelayRequestListener to accept or reject the request

See also

Meeting.requestMediaRelay()