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
fun acceptReceiveAndSend(localVideoStream: , 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:
Local video stream to be sent to the remote participant
callback:
Callback to receive the result of this operation, or null
Returns
type:
Unit
fun acceptReceiveOnly(): Unit
Accepts video receiving from the remote participant.
After the decision is applied successfully, CallListener.onRemoteVideoStreamAdded may be triggered.
Returns
type:
Unit
fun reject(): Unit
Rejects the call upgrade request and keeps the call audio-only.
Returns
type:
Unit