mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
docs(ci): Update protocol.md - 481b26d [skip ci]
This commit is contained in:
parent
481b26d09d
commit
ed29ec528d
@ -5919,6 +5919,55 @@
|
|||||||
"type": "class",
|
"type": "class",
|
||||||
"examples": []
|
"examples": []
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"subheads": [],
|
||||||
|
"description": "\n\nNote: If the new name already exists as a source, OBS will automatically modify the name to not interfere.",
|
||||||
|
"param": [
|
||||||
|
"{String} `sourceName` Source name.",
|
||||||
|
"{String} `newName` New source name."
|
||||||
|
],
|
||||||
|
"api": "requests",
|
||||||
|
"name": "SetSourceName",
|
||||||
|
"category": "sources",
|
||||||
|
"since": "4.8.0",
|
||||||
|
"params": [
|
||||||
|
{
|
||||||
|
"type": "String",
|
||||||
|
"name": "sourceName",
|
||||||
|
"description": "Source name."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "String",
|
||||||
|
"name": "newName",
|
||||||
|
"description": "New source name."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"names": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"description": "SetSourceName"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"categories": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"description": "sources"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"sinces": [
|
||||||
|
{
|
||||||
|
"name": "",
|
||||||
|
"description": "4.8.0"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"heading": {
|
||||||
|
"level": 2,
|
||||||
|
"text": "SetSourceName"
|
||||||
|
},
|
||||||
|
"lead": "Sets (aka rename) the name of a source. Also works with scenes since scenes are technically sources in OBS.",
|
||||||
|
"type": "class",
|
||||||
|
"examples": []
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"subheads": [],
|
"subheads": [],
|
||||||
"description": "Set the audio sync offset of a specified source.",
|
"description": "Set the audio sync offset of a specified source.",
|
||||||
|
@ -172,6 +172,7 @@ auth_response = base64_encode(auth_response_hash)
|
|||||||
+ [GetMute](#getmute)
|
+ [GetMute](#getmute)
|
||||||
+ [SetMute](#setmute)
|
+ [SetMute](#setmute)
|
||||||
+ [ToggleMute](#togglemute)
|
+ [ToggleMute](#togglemute)
|
||||||
|
+ [SetSourceName](#setsourcename)
|
||||||
+ [SetSyncOffset](#setsyncoffset)
|
+ [SetSyncOffset](#setsyncoffset)
|
||||||
+ [GetSyncOffset](#getsyncoffset)
|
+ [GetSyncOffset](#getsyncoffset)
|
||||||
+ [GetSourceSettings](#getsourcesettings)
|
+ [GetSourceSettings](#getsourcesettings)
|
||||||
@ -2372,6 +2373,29 @@ Inverts the mute status of a specified source.
|
|||||||
| `source` | _String_ | Source name. |
|
| `source` | _String_ | Source name. |
|
||||||
|
|
||||||
|
|
||||||
|
**Response Items:**
|
||||||
|
|
||||||
|
_No additional response items._
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### SetSourceName
|
||||||
|
|
||||||
|
|
||||||
|
- Added in v4.8.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Note: If the new name already exists as a source, OBS will automatically modify the name to not interfere.
|
||||||
|
|
||||||
|
**Request Fields:**
|
||||||
|
|
||||||
|
| Name | Type | Description |
|
||||||
|
| ---- | :---: | ------------|
|
||||||
|
| `sourceName` | _String_ | Source name. |
|
||||||
|
| `newName` | _String_ | New source name. |
|
||||||
|
|
||||||
|
|
||||||
**Response Items:**
|
**Response Items:**
|
||||||
|
|
||||||
_No additional response items._
|
_No additional response items._
|
||||||
|
Loading…
x
Reference in New Issue
Block a user