Rate this page:

CallUpgradeDecision

Interface that processes a call upgrade request received in CallListener.onCallUpgradeRequested.

The application should use the provided instance exactly once by calling one of its methods.

If no decision is made before the timeout, CallListener.onCallUpgradeRequestTimeout is triggered. The upgrade request is then automatically rejected.

Methods

acceptReceiveAndSend
Copy URL
fun acceptReceiveAndSend(localVideoStream: 

LocalVideoStream

,
callback:

Callback?

):

Unit

Accepts the incoming video from the remote participant and starts sending the local video stream.

The callback parameter reports the result of starting local video capture and renegotiation.

After the decision is applied successfully, CallListener.onRemoteVideoStreamAdded may be triggered and Call.localVideoStream becomes available.

Parameters

  • localVideoStream:

    LocalVideoStream

    Local video stream to be sent to the remote participant

  • callback:

    Callback?

    Callback to receive the result of this operation, or null

Returns

  • type:

    Unit

acceptReceiveOnly
Copy URL
fun acceptReceiveOnly(): 

Unit

Accepts video receiving from the remote participant.

After the decision is applied successfully, CallListener.onRemoteVideoStreamAdded may be triggered.

Returns

  • type:

    Unit

reject
Copy URL
fun reject(): 

Unit

Rejects the call upgrade request and keeps the call audio-only.

Returns

  • type:

    Unit

Rate this page: