Skip to content

IncomingWebrtcCall

Lejla Solak edited this page Feb 10, 2025 · 2 revisions



accept(webrtcCallOptions)

Description

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.

Arguments

  • webrtcCallOptions: WebrtcCallOptions - The options used to configure the call, including parameters such as audio, video, and other settings for the call.

Returns

  • N/A

Example

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);
};

Tutorials

Migration guides

Reference documentation

Clone this wiki locally