mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Protocol: remove useless API version field
This commit is contained in:
parent
61931c179f
commit
c00681b52d
@ -339,7 +339,6 @@ Returns the latest version of the plugin and the API.
|
|||||||
|
|
||||||
__Request fields__ : none
|
__Request fields__ : none
|
||||||
__Response__ : always OK, with these additional fields :
|
__Response__ : always OK, with these additional fields :
|
||||||
- **"version"** (double) : OBSRemote API version. Fixed to 1.1 for retrocompatibility.
|
|
||||||
- **"obs-websocket-version"** (string) : obs-websocket version string
|
- **"obs-websocket-version"** (string) : obs-websocket version string
|
||||||
- **"obs-studio-version"** (string) : OBS Studio version string
|
- **"obs-studio-version"** (string) : OBS Studio version string
|
||||||
- **"available-requests"** (string) : comma-separated list of available request types
|
- **"available-requests"** (string) : comma-separated list of available request types
|
||||||
|
@ -205,7 +205,6 @@ void WSRequestHandler::HandleGetVersion(WSRequestHandler* req) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
obs_data_t* data = obs_data_create();
|
obs_data_t* data = obs_data_create();
|
||||||
obs_data_set_double(data, "version", API_VERSION);
|
|
||||||
obs_data_set_string(data, "obs-websocket-version", OBS_WEBSOCKET_VERSION);
|
obs_data_set_string(data, "obs-websocket-version", OBS_WEBSOCKET_VERSION);
|
||||||
obs_data_set_string(data, "obs-studio-version", obs_version);
|
obs_data_set_string(data, "obs-studio-version", obs_version);
|
||||||
obs_data_set_string(data, "available-requests", requests.toUtf8().constData());
|
obs_data_set_string(data, "available-requests", requests.toUtf8().constData());
|
||||||
|
@ -21,7 +21,6 @@ with this program. If not, see <https://www.gnu.org/licenses/>
|
|||||||
|
|
||||||
#define PROP_AUTHENTICATED "wsclient_authenticated"
|
#define PROP_AUTHENTICATED "wsclient_authenticated"
|
||||||
#define OBS_WEBSOCKET_VERSION "4.2.0"
|
#define OBS_WEBSOCKET_VERSION "4.2.0"
|
||||||
#define API_VERSION 1.4
|
|
||||||
|
|
||||||
#define blog(level, msg, ...) blog(level, "[obs-websocket] " msg, ##__VA_ARGS__)
|
#define blog(level, msg, ...) blog(level, "[obs-websocket] " msg, ##__VA_ARGS__)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user