RelayRequestListener

Listener interface for responding to a media relay request from another meeting.

This listener is provided in the onMediaRelayRequestReceived callback. Call accept to accept the relay or reject to decline.

Both need a joined meeting. Because the app chooses when to respond — typically after a user dismisses a dialog — the meeting may have left or started reconnecting in the meantime. In that case the response is not sent and the reason arrives on onError; see Meeting for the codes.

Code Example:



public void onMediaRelayRequestReceived(String participantId, String liveStreamId,
        String displayName, RelayRequestListener listener) {
    // Show a dialog, then:
    listener.accept();  // or listener.reject();
}

See also

MeetingEventListener.onMediaRelayRequestReceived()

Meeting.requestMediaRelay()

Functions

Link copied to clipboard
abstract fun accept()
Accepts the media relay request.
Link copied to clipboard
abstract fun reject()
Rejects the media relay request.