-
Notifications
You must be signed in to change notification settings - Fork 2
IncomingWebrtcCall
Lejla Solak edited this page Feb 10, 2025
·
2 revisions
extends WebrtcCall, IncomingCall
Accepts an incoming WebRTC call, , which results in both parties receiving
CallEstablishedEvent, after accept is processed by Infobip WebRTC platform. This method
overrides the default call options, enabling you to accept the call with a different configuration.
-
webrtcCallOptions:WebrtcCallOptions- The options used to configure the call, including parameters such as audio, video, and other settings for the call.
N/A
IncomingCallEventListener incomingCallEventListener = incomingWebrtcCallEvent -> {
IncomingWebrtcCall incomingWebrtcCall = incomingWebrtcCallEvent.getIncomingWebrtcCall();
incomingWebrtcCall.setEventListener(new DefaultWebrtcCallEventListener());
VideoOptions videoOptions = VideoOptions.builder()
.cameraOrientation(VideoOptions.CameraOrientation.FRONT)
.build();
WebrtcCallOptions options = WebrtcCallOptions.builder()
.audio(false)
.video(true)
.videoOptions(videoOptions)
.build();
incomingWebrtcCall.accept(options);
};