-
Notifications
You must be signed in to change notification settings - Fork 0
IncomingCall
Ajša Terko edited this page Feb 22, 2023
·
3 revisions
Accepts the incoming call.
-
options
:CallOptions
- Optional additional options to be used when accepting an incoming call.
N/A
let infobipRTC = createInfobipRtc('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-webrtc-call', (incomingWebrtcCallEvent) => {
incomingWebrtcCallEvent.incomingCall.accept(WebrtcCallOptions.builder().setVideo(true).build());
});
Declines the incoming call.
-
options
:DeclineOptions
- Optional additional option to decline an incoming call on all devices.
N/A
let infobipRTC = createInfobipRtc('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-webrtc-call', (incomingWebrtcCallEvent) => {
incomingWebrtcCallEvent.incomingCall.decline(DeclineOptions.builder().setDeclineOnAllDevices(true).build());
});