Expand description
§Handle calls.
Internally, calls are bound a user-visible message initializing the call. This means, the “Call ID” is a “Message ID” - similar to Webxdc IDs.
Structs§
Enums§
- Call
State - State of the call for display in the message bubble.
Constants§
- CALL_
ACCEPTED_ 🔒TIMESTAMP - CALL_
CANCELED_ 🔒TIMESTAMP - Set if incoming call was ended explicitly by the other side before we accepted it.
- CALL_
ENDED_ 🔒TIMESTAMP - RINGING_
SECONDS 🔒 - How long callee’s or caller’s phone ring.
- STUN_
PORT 🔒
Functions§
- call_
state - Returns call state given the message ID.
- create_
fallback_ 🔒ice_ servers - Creates JSON with ICE servers when no TURN servers are known.
- create_
ice_ 🔒servers - Creates JSON with ICE servers.
- create_
ice_ 🔒servers_ from_ metadata - Creates JSON with ICE servers from a line received over IMAP METADATA.
- ice_
servers - Returns JSON with ICE servers.
- sdp_
has_ video - Returns true if SDP offer has a video.