Mercurial > libervia-backend
annotate docker/web-demo.yml @ 4231:e11b13418ba6
plugin XEP-0353, XEP-0234, jingle: WebRTC data channel signaling implementation:
Implement XEP-0343: Signaling WebRTC Data Channels in Jingle. The current version of the
XEP (0.3.1) has no implementation and contains some flaws. After discussing this on xsf@,
Daniel (from Conversations) mentioned that they had a sprint with Larma (from Dino) to
work on another version and provided me with this link:
https://gist.github.com/iNPUTmice/6c56f3e948cca517c5fb129016d99e74 . I have used it for my
implementation.
This implementation reuses work done on Jingle A/V call (notably XEP-0176 and XEP-0167
plugins), with adaptations. When used, XEP-0234 will not handle the file itself as it
normally does. This is because WebRTC has several implementations (browser for web
interface, GStreamer for others), and file/data must be handled directly by the frontend.
This is particularly important for web frontends, as the file is not sent from the backend
but from the end-user's browser device.
Among the changes, there are:
- XEP-0343 implementation.
- `file_send` bridge method now use serialised dict as output.
- New `BaseTransportHandler.is_usable` method which get content data and returns a boolean
(default to `True`) to tell if this transport can actually be used in this context (when
we are initiator). Used in webRTC case to see if call data are available.
- Support of `application` media type, and everything necessary to handle data channels.
- Better confirmation message, with file name, size and description when available.
- When file is accepted in preflight, it is specified in following `action_new` signal for
actual file transfer. This way, frontend can avoid the display or 2 confirmation
messages.
- XEP-0166: when not specified, default `content` name is now its index number instead of
a UUID. This follows the behaviour of browsers.
- XEP-0353: better handling of events such as call taken by another device.
- various other updates.
rel 441
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 06 Apr 2024 12:57:23 +0200 |
parents | 87caf6284c55 |
children |
rev | line source |
---|---|
3511
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
1 version: "3.6" |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 services: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
3 |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
4 prosody: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 image: libervia/prosody:demo |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 depends_on: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 # we need to depend on backend to get IP address of the container for conf |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 - backend |
3692
f35ba048687e
docker (web-demo): fix prosody `tmpfs` instruction
Goffi <goffi@goffi.org>
parents:
3512
diff
changeset
|
9 tmpfs: |
f35ba048687e
docker (web-demo): fix prosody `tmpfs` instruction
Goffi <goffi@goffi.org>
parents:
3512
diff
changeset
|
10 - /var/log/prosody |
3511
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 networks: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
12 default: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 aliases: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
14 - server1.test |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
15 |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
16 db: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
17 image: postgres |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
18 environment: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
19 POSTGRES_PASSWORD: test_e2e |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
20 POSTGRES_DB: pubsub |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
21 tmpfs: /var/lib/postgresql/data |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
22 |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
23 pubsub: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
24 image: libervia/pubsub |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
25 depends_on: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
26 - db |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
27 - prosody |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
28 environment: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
29 PGHOST: db |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
30 PGUSER: postgres |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
31 PGPASSWORD: test_e2e |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
32 LIBERVIA_PUBSUB_RHOST: server1.test |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
33 LIBERVIA_PUBSUB_JID: pubsub.server1.test |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
34 LIBERVIA_PUBSUB_XMPP_PWD: test_e2e |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
35 |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
36 backend: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
37 image: libervia/backend:dev-demo |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
38 volumes: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
39 - libervia-web-demo_data:/home/libervia/.local/share/libervia |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
40 ports: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
41 # HTTP Upload |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
42 - "7777:7777" |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
43 networks: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
44 default: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
45 aliases: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
46 - libervia-backend.test |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
47 |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
48 web: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
49 image: libervia/web:dev-demo |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
50 depends_on: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
51 - backend |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
52 environment: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
53 LIBERVIA_PASSPHRASE: test_demo |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
54 volumes: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
55 - libervia-web-demo_data:/home/libervia/.local/share/libervia |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
56 ports: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
57 - "8880:8880" |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
58 networks: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
59 default: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
60 aliases: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
61 - libervia-web.test |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
62 |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
63 volumes: |
db0f4d419448
docker: add demo images and compose file
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
64 libervia-web-demo_data: |