Merge pull request #641 from VMinute/bugfix/fix-list-scenes-collections

General: Add ScenesCollection object
This commit is contained in:
Stéphane Lepin 2021-01-20 10:37:31 +01:00 committed by GitHub
commit 056c1ef1fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 14 deletions

View File

@ -474,6 +474,31 @@
},
"examples": []
},
{
"subheads": [],
"typedef": "{Object} `ScenesCollection`",
"property": "{String} `sc-name` Name of the scene collection",
"properties": [
{
"type": "String",
"name": "sc-name",
"description": "Name of the scene collection"
}
],
"typedefs": [
{
"type": "Object",
"name": "ScenesCollection",
"description": ""
}
],
"name": "",
"heading": {
"level": 2,
"text": ""
},
"examples": []
},
{
"subheads": [],
"typedef": "{Object} `Scene`",
@ -8218,24 +8243,16 @@
{
"subheads": [],
"description": "List available scene collections",
"return": [
"{Array<String>} `scene-collections` Scene collections list",
"{String} `scene-collections.*.sc-name` Scene collection name"
],
"return": "{Array<ScenesCollection>} `scene-collections` Scene collections list",
"api": "requests",
"name": "ListSceneCollections",
"category": "scene collections",
"since": "4.0.0",
"returns": [
{
"type": "Array<String>",
"type": "Array<ScenesCollection>",
"name": "scene-collections",
"description": "Scene collections list"
},
{
"type": "String",
"name": "scene-collections.*.sc-name",
"description": "Scene collection name"
}
],
"names": [

View File

@ -49,6 +49,7 @@ You can also refer to any of the client libraries listed on the [README](README.
* [SceneItemTransform](#sceneitemtransform)
* [OBSStats](#obsstats)
* [Output](#output)
* [ScenesCollection](#scenescollection)
* [Scene](#scene)
- [Events](#events)
* [Scenes](#scenes)
@ -344,6 +345,10 @@ These are complex types, such as `Source` and `Scene`, which are used as argumen
| `totalFrames` | _int_ | Number of frames sent |
| `droppedFrames` | _int_ | Number of frames dropped |
| `totalBytes` | _int_ | Total bytes sent |
## ScenesCollection
| Name | Type | Description |
| ---- | :---: | ------------|
| `sc-name` | _String_ | Name of the scene collection |
## Scene
| Name | Type | Description |
| ---- | :---: | ------------|
@ -3308,8 +3313,7 @@ _No specified parameters._
| Name | Type | Description |
| ---- | :---: | ------------|
| `scene-collections` | _Array&lt;String&gt;_ | Scene collections list |
| `scene-collections.*.sc-name` | _String_ | Scene collection name |
| `scene-collections` | _Array&lt;ScenesCollection&gt;_ | Scene collections list |
---

View File

@ -2,6 +2,11 @@
#include "WSRequestHandler.h"
/**
* @typedef {Object} `ScenesCollection`
* @property {String} `sc-name` Name of the scene collection
*/
/**
* Change the active scene collection.
*
@ -59,8 +64,7 @@ RpcResponse WSRequestHandler::GetCurrentSceneCollection(const RpcRequest& reques
/**
* List available scene collections
*
* @return {Array<String>} `scene-collections` Scene collections list
* @return {String} `scene-collections.*.sc-name` Scene collection name
* @return {Array<ScenesCollection>} `scene-collections` Scene collections list
*
* @api requests
* @name ListSceneCollections