docs/api: update info about picker item types

This commit is contained in:
wukko 2024-07-26 22:02:59 +06:00 committed by GitHub
parent 9d4f7e666f
commit f8a28c6c5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,9 +49,9 @@ item type: `object`
| key | type | variables | description | | key | type | variables | description |
|:--------|:---------|:--------------------------------------------------------|:---------------------------------------| |:--------|:---------|:--------------------------------------------------------|:---------------------------------------|
| `type` | `string` | `video` | used only if `pickerType`is `various`. | | `type` | `string` | `video / photo / gif` | used only if `pickerType` is `various` |
| `url` | `string` | direct link to a file or a link to cobalt's live render | | | `url` | `string` | direct link to a file or a link to cobalt's live render | |
| `thumb` | `string` | item thumbnail that's displayed in the picker | used only for `video` type. | | `thumb` | `string` | item thumbnail that's displayed in the picker | used for `video` and `gif` types |
## GET: `/api/stream` ## GET: `/api/stream`
cobalt's live render (or stream) endpoint. usually, you will receive a url to this endpoint cobalt's live render (or stream) endpoint. usually, you will receive a url to this endpoint