How to "Enable hardware decoding" (6.1.0 Server) through API ?
AnsweredHow can I enable 'Hardware decoding' on Nx Witness Server (v6.1.0.42176) using the API?
I cannot locate this function in the REST V4 documentation.
Please refer to the attached screenshot for the specific setting. Thanks !

0
-
Hello Linssen Kong ,
Currently this setting is managed by the key hardwareDecodingEnabled nested under parameters section of the JSON object for Server.
This section is a bit special, so the proper way of handling that setting change is like following:
- Read the current state of the parameters for the running server using GET /rest/v4/servers/{id}?_with=parameters specifying the id of the server in question.
- Save the current state into some JSON variable
- Find the hardwareDecodingEnabled key and change its value to true.
- If there is no such value, add it under the parameters nested key with the value true
- Use the updated JSON as a payload body for the modification request PATCH /rest/v4/servers/{id}
0
Please sign in to leave a comment.
Comments
1 comment