Protocol: remove useless API version field

This commit is contained in:
Stéphane L 2017-08-06 05:10:14 +02:00
parent 61931c179f
commit c00681b52d
3 changed files with 0 additions and 3 deletions

View File

@ -339,7 +339,6 @@ Returns the latest version of the plugin and the API.
__Request fields__ : none
__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-studio-version"** (string) : OBS Studio version string
- **"available-requests"** (string) : comma-separated list of available request types

View File

@ -205,7 +205,6 @@ void WSRequestHandler::HandleGetVersion(WSRequestHandler* req) {
}
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-studio-version", obs_version);
obs_data_set_string(data, "available-requests", requests.toUtf8().constData());

View File

@ -21,7 +21,6 @@ with this program. If not, see <https://www.gnu.org/licenses/>
#define PROP_AUTHENTICATED "wsclient_authenticated"
#define OBS_WEBSOCKET_VERSION "4.2.0"
#define API_VERSION 1.4
#define blog(level, msg, ...) blog(level, "[obs-websocket] " msg, ##__VA_ARGS__)