You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,8 @@ To integrate into your Delta Chat client you need to provide a
16
16
Commands are given to the app via URL hash:
17
17
18
18
-`#startCall`: tells the app to generate an offer payload and call `startCall()`, this is how the app should be open when the user is starting an outgoing call.
19
-
-`#acceptCall=PAYLOAD`: tells the app to auto-accept the incoming offer, generating an answer payload and calling `acceptCall()`, this must be used when the user clicks "Answer" in the incoming call notification.
19
+
-`#offerIncomingCall=PAYLOAD`: tells the app to show the "Incoming call. Answer?" screen. Then, if the user clicks "Answer", generate a WebRTC answer to the offer provided in `PAYLOAD`, and call `window.calls.acceptCall(webrtcAnswer)`. If the user declined the call, the app will invoke `window.calls.endCall`.
20
+
-`#acceptCall=PAYLOAD`: same as `#offerIncomingCall`, but doesn't show the "Incoming call. Answer?" screen and instead automatically and immediately accepts the call.
20
21
-`#onAnswer=PAYLOAD`: notifies the app that the outgoing call was accepted and provides the answer payload
21
22
22
23
**IMPORTANT:**`PAYLOAD`**must** be base64 encoded (NOTE: you might still need to URL-encode the base64 string to be a valid URL hash) before passing it to the app in the URL hash.
0 commit comments