Type alias CallEventHandlerMap
CallEventHandlerMap: {
asserted_identity_changed: ((call) => void);
datachannel: ((channel, call) => void);
error: ((error, call) => void);
feeds_changed: ((feeds, call) => void);
hangup: ((call) => void);
hold_unhold: ((onHold) => void);
length_changed: ((length, call) => void);
local_hold_unhold: ((onHold, call) => void);
peer_connection_created: ((peerConn, call) => void);
remote_hold_unhold: ((onHold, call) => void);
replaced: ((newCall, oldCall) => void);
send_voip_event: ((event, call) => void);
state: ((state, oldState, call) => void);
}
Type declaration
-
asserted_identity_changed: ((call) => void)
-
- (call): void
-
Returns void
-
datachannel: ((channel, call) => void)
-
- (channel, call): void
-
Returns void
-
error: ((error, call) => void)
-
- (error, call): void
-
Returns void
-
feeds_changed: ((feeds, call) => void)
-
- (feeds, call): void
-
Returns void
-
hangup: ((call) => void)
-
- (call): void
-
Returns void
-
hold_unhold: ((onHold) => void)
-
- (onHold): void
-
Returns void
-
length_changed: ((length, call) => void)
-
- (length, call): void
-
Returns void
-
local_hold_unhold: ((onHold, call) => void)
-
- (onHold, call): void
-
Returns void
-
peer_connection_created: ((peerConn, call) => void)
-
- (peerConn, call): void
-
Returns void
-
remote_hold_unhold: ((onHold, call) => void)
-
- (onHold, call): void
-
Returns void
-
replaced: ((newCall, oldCall) => void)
-
- (newCall, oldCall): void
-
Returns void
-
send_voip_event: ((event, call) => void)
-
- (event, call): void
-
Returns void
-
state: ((state, oldState, call) => void)
-
- (state, oldState, call): void
-
Returns void
These now all have the call object as an argument. Why? Well, to know which call a given event is about you have three options:
Now that we have group calls which have to deal with multiple call objects, this will become more important, and I think methods 1 and 2 are just going to cause issues.