CallUpgradeDecision (interface)
com.voximplant.android.sdk.calls
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.
Nested types
Methods
acceptReceiveAndSend
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
Returns: Unit
acceptReceiveOnly
fun acceptReceiveOnly(): Unit
Accepts video receiving from the remote participant.
After the decision is applied successfully, CallListener.onRemoteVideoStreamAdded may be triggered.
Returns: Unit
reject
fun reject(): Unit
Rejects the call upgrade request and keeps the call audio-only.
Returns: Unit