Add special events to update "incall" flags of all sessions.

This commit is contained in:
Joachim Bauch
2022-03-23 09:15:22 +01:00
parent 008879aefa
commit 97f2a1d5f0
8 changed files with 313 additions and 9 deletions
+40
View File
@@ -555,6 +555,29 @@ for both the signaling session id (`sessionId`) and the Nextcloud session id
(`nextcloudSessionId`).
### All participants "incall" changed events
When the `inCall` flag of all participants is changed from the backend (see
[backend request](#in-call-state-of-all-participants-changed) below),
a dedicated event is sent that doesn't include information on all participants,
but an `all` flag.
Message format (Server -> Client, incall change):
{
"type": "event"
"event": {
"target": "participants",
"type": "update",
"update": [
"roomid": "the-room-id",
"incall": new-incall-state,
"all": true
]
}
}
## Room messages
The server can notify clients about events that happened in a room. Currently
@@ -884,6 +907,23 @@ Message format (Backend -> Server)
}
### In call state of all participants changed
This can be used to notify when all participants changed their `inCall` flag
to the same new value (available if the server returns the `incall-all` feature
id in the [hello response](#establish-connection)).
Message format (Backend -> Server)
{
"type": "incall"
"incall" {
"incall": new-incall-state,
"all": true
}
}
### Send an arbitrary room message
This can be used to send arbitrary messages to participants in a room. It is