Browse Source

Update call documentation with recent changes

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/2290/head
Joas Schilling 6 years ago
parent
commit
39d0786b68
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 13
      docs/call.md
  2. 6
      docs/constants.md

13
docs/call.md

@ -10,7 +10,9 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1`
* Response:
- Header:
+ `200 OK`
+ `403 Forbidden` When the conversation is read-only
+ `404 Not Found` When the conversation could not be found for the participant
+ `412 Precondition Failed` When the lobby is active and the user is not a moderator
- Data:
Array of participants, each participant has at least:
@ -25,11 +27,19 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1`
* Method: `POST`
* Endpoint: `/call/{token}`
* Data:
field | type | Description
------|------|------------
`flags` | int | Flags what streams are provided by the participant (see [Constants - Participant in-call flag](constants.md#participant-in-call-flag))
* Response:
- Header:
+ `200 OK`
+ `403 Forbidden` When the conversation is read-only
+ `404 Not Found` When the conversation could not be found for the participant
+ `404 Not Found` When the user did not join the conversation before
+ `412 Precondition Failed` When the lobby is active and the user is not a moderator
## Leave a call (but staying in the conversation for future calls and chat)
@ -39,4 +49,7 @@ Base endpoint is: `/ocs/v2.php/apps/spreed/api/v1`
* Response:
- Header:
+ `200 OK`
+ `403 Forbidden` When the conversation is read-only
+ `404 Not Found` When the conversation could not be found for the participant
+ `404 Not Found` When the user did not join the conversation before
+ `412 Precondition Failed` When the lobby is active and the user is not a moderator

6
docs/constants.md

@ -20,6 +20,12 @@ title: Constants
* `5` user following a public link
* `6` guest with moderator permissions
## Participant in-call flag
* `0` disconnected
* `1` in-call
* `2` provides audio
* `4` provides video
## Actor types of chat messages
* `guests` - guest users
* `users` - logged-in users

Loading…
Cancel
Save