-
Notifications
You must be signed in to change notification settings - Fork 2
IncomingWebrtcCallEvent
Lejla Solak edited this page Sep 11, 2023
·
3 revisions
constructor(incomingCall: IncomingWebrtcCall, customData: CustomDataincomingCall(): IncomingWebrtcCallcustomData(): 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-valuestringpairs.
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 thecustomDatafield, defined as an object of key-valuestringpairs, 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)}`);
});