set.lua
[INDEX]

ABSTRACT

General parameter set API

Encoder configure parameters mostly have one unique 'Parameter ID', for example:


encoder.stream[0].video.codec, corresponding value is "H264"


You could get corresponding configuration parameter value through specifying one or more Parameter ID;And you can set encoding parameter through specifying value for one or more Parameter ID.

All other HTTP API is essentially changing encoder's corresponding parameter. Of course,due to parameters quantity are numerous, mutual relations are complicated, users could call corresponding API according to functions request;the genereal get.lua/set.lua interface only exists as supplementary means.

The mains uses of get.lua/set.lua is batch get/set parameter to realized Preset functions.

ARGUMENTS

HTTP Arguments submit: POST

Test this API over HTTP - (URL):

Specify parameter name as Parameter ID (one or more) through POST argument, value is what you want to set. For example:

encoder.stream[0].video.codec: "H264",

encoder.stream[0].video.bitrate: 2000000,

....

RETURNS

Return a JSON style result. The JSON format is:

{
/*OBJECT*/

"Result":
NUMBER

200 means OK, other error code meanings are similar to HTTP Response.

"Status":
"STRING"

Status message. Responsing result status of API executive, if there errors, it will describe reasons.

}

NOTES

To get a whole 'Parameter ID' list, please contact factory techinical support.

OTHER NOTES

Device HTTP API, v1.0