-
Notifications
You must be signed in to change notification settings - Fork 0
IncomingWebrtcCallEvent
Lejla Solak edited this page Sep 11, 2023
·
3 revisions
constructor(incomingCall: IncomingWebrtcCall, customData: CustomData
incomingCall(): IncomingWebrtcCall
customData(): CustomData
Creates a new instance of IncomingWebrtcCallEvent
.
-
incomingCall
:IncomingWebrtcCall
- The incoming call object for this event. -
customData
:CustomData
- Custom data type that is defined as an object of key-valuestring
pairs.
let incomingWebrtcCallEvent = new IncomingWebrtcCallEvent(incomingCall, {"city": "New York"});
Getter for the incomingCall
field.
none
-
IncomingWebrtcCall
- Represents the incoming WebRTC call object for this event.
let infobipRTC = createInfobipRtc('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-webrtc-call', (incomingWebrtcCallEvent) => {
incomingWebrtcCallEvent.incomingCall.accept();
});
Getter for the customData
field.
none
-
CustomData
- Value of thecustomData
field, defined as an object of key-valuestring
pairs, containing custom additional information.
let infobipRTC = createInfobipRtc('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-webrtc-call', function (incomingWebrtcCallEvent) {
console.log(`Incoming WebRTC call custom data: ${JSON.stringify(incomingWebrtcCallEvent.customData)}`);
});