Move response examples in pretty-formatted single files
This commit is contained in:
26
examples/response/GetDevInfo.json
Normal file
26
examples/response/GetDevInfo.json
Normal file
@@ -0,0 +1,26 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetDevInfo",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"DevInfo": {
|
||||
"B485": 0,
|
||||
"IOInputNum": 0,
|
||||
"IOOutputNum": 0,
|
||||
"audioNum": 0,
|
||||
"buildDay": "build 18081408",
|
||||
"cfgVer": "v2.0.0.0",
|
||||
"channelNum": 1,
|
||||
"detail": "IPC_3816M100000000100000",
|
||||
"diskNum": 1,
|
||||
"firmVer": "v2.0.0.1389_18081408",
|
||||
"hardVer": "IPC_3816M",
|
||||
"model": "RLC-411WS",
|
||||
"name": "Camera1_withpersonality",
|
||||
"serial": "00000000000000",
|
||||
"type": "IPC",
|
||||
"wifi": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
377
examples/response/GetEnc.json
Normal file
377
examples/response/GetEnc.json
Normal file
@@ -0,0 +1,377 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetEnc",
|
||||
"code": 0,
|
||||
"initial": {
|
||||
"Enc": {
|
||||
"audio": 0,
|
||||
"channel": 0,
|
||||
"mainStream": {
|
||||
"bitRate": 4096,
|
||||
"frameRate": 15,
|
||||
"profile": "High",
|
||||
"size": "3072*1728"
|
||||
},
|
||||
"subStream": {
|
||||
"bitRate": 160,
|
||||
"frameRate": 7,
|
||||
"profile": "High",
|
||||
"size": "640*360"
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": {
|
||||
"Enc": [
|
||||
{
|
||||
"audio": "boolean",
|
||||
"mainStream": {
|
||||
"bitRate": [
|
||||
1024,
|
||||
1536,
|
||||
2048,
|
||||
3072,
|
||||
4096,
|
||||
5120,
|
||||
6144,
|
||||
7168,
|
||||
8192
|
||||
],
|
||||
"default": {
|
||||
"bitRate": 4096,
|
||||
"frameRate": 15
|
||||
},
|
||||
"frameRate": [
|
||||
20,
|
||||
18,
|
||||
16,
|
||||
15,
|
||||
12,
|
||||
10,
|
||||
8,
|
||||
6,
|
||||
4,
|
||||
2
|
||||
],
|
||||
"profile": [
|
||||
"Base",
|
||||
"Main",
|
||||
"High"
|
||||
],
|
||||
"size": "3072*1728"
|
||||
},
|
||||
"subStream": {
|
||||
"bitRate": [
|
||||
64,
|
||||
128,
|
||||
160,
|
||||
192,
|
||||
256,
|
||||
384,
|
||||
512
|
||||
],
|
||||
"default": {
|
||||
"bitRate": 160,
|
||||
"frameRate": 7
|
||||
},
|
||||
"frameRate": [
|
||||
15,
|
||||
10,
|
||||
7,
|
||||
4
|
||||
],
|
||||
"profile": [
|
||||
"Base",
|
||||
"Main",
|
||||
"High"
|
||||
],
|
||||
"size": "640*360"
|
||||
}
|
||||
},
|
||||
{
|
||||
"audio": "boolean",
|
||||
"mainStream": {
|
||||
"bitRate": [
|
||||
1024,
|
||||
1536,
|
||||
2048,
|
||||
3072,
|
||||
4096,
|
||||
5120,
|
||||
6144,
|
||||
7168,
|
||||
8192
|
||||
],
|
||||
"default": {
|
||||
"bitRate": 4096,
|
||||
"frameRate": 15
|
||||
},
|
||||
"frameRate": [
|
||||
20,
|
||||
18,
|
||||
16,
|
||||
15,
|
||||
12,
|
||||
10,
|
||||
8,
|
||||
6,
|
||||
4,
|
||||
2
|
||||
],
|
||||
"profile": [
|
||||
"Base",
|
||||
"Main",
|
||||
"High"
|
||||
],
|
||||
"size": "2592*1944"
|
||||
},
|
||||
"subStream": {
|
||||
"bitRate": [
|
||||
64,
|
||||
128,
|
||||
160,
|
||||
192,
|
||||
256,
|
||||
384,
|
||||
512
|
||||
],
|
||||
"default": {
|
||||
"bitRate": 160,
|
||||
"frameRate": 7
|
||||
},
|
||||
"frameRate": [
|
||||
15,
|
||||
10,
|
||||
7,
|
||||
4
|
||||
],
|
||||
"profile": [
|
||||
"Base",
|
||||
"Main",
|
||||
"High"
|
||||
],
|
||||
"size": "640*360"
|
||||
}
|
||||
},
|
||||
{
|
||||
"audio": "boolean",
|
||||
"mainStream": {
|
||||
"bitRate": [
|
||||
1024,
|
||||
1536,
|
||||
2048,
|
||||
3072,
|
||||
4096,
|
||||
5120,
|
||||
6144,
|
||||
7168,
|
||||
8192
|
||||
],
|
||||
"default": {
|
||||
"bitRate": 3072,
|
||||
"frameRate": 15
|
||||
},
|
||||
"frameRate": [
|
||||
30,
|
||||
22,
|
||||
20,
|
||||
18,
|
||||
16,
|
||||
15,
|
||||
12,
|
||||
10,
|
||||
8,
|
||||
6,
|
||||
4,
|
||||
2
|
||||
],
|
||||
"profile": [
|
||||
"Base",
|
||||
"Main",
|
||||
"High"
|
||||
],
|
||||
"size": "2560*1440"
|
||||
},
|
||||
"subStream": {
|
||||
"bitRate": [
|
||||
64,
|
||||
128,
|
||||
160,
|
||||
192,
|
||||
256,
|
||||
384,
|
||||
512
|
||||
],
|
||||
"default": {
|
||||
"bitRate": 160,
|
||||
"frameRate": 7
|
||||
},
|
||||
"frameRate": [
|
||||
15,
|
||||
10,
|
||||
7,
|
||||
4
|
||||
],
|
||||
"profile": [
|
||||
"Base",
|
||||
"Main",
|
||||
"High"
|
||||
],
|
||||
"size": "640*360"
|
||||
}
|
||||
},
|
||||
{
|
||||
"audio": "boolean",
|
||||
"mainStream": {
|
||||
"bitRate": [
|
||||
1024,
|
||||
1536,
|
||||
2048,
|
||||
3072,
|
||||
4096,
|
||||
5120,
|
||||
6144,
|
||||
7168,
|
||||
8192
|
||||
],
|
||||
"default": {
|
||||
"bitRate": 3072,
|
||||
"frameRate": 15
|
||||
},
|
||||
"frameRate": [
|
||||
30,
|
||||
22,
|
||||
20,
|
||||
18,
|
||||
16,
|
||||
15,
|
||||
12,
|
||||
10,
|
||||
8,
|
||||
6,
|
||||
4,
|
||||
2
|
||||
],
|
||||
"profile": [
|
||||
"Base",
|
||||
"Main",
|
||||
"High"
|
||||
],
|
||||
"size": "2048*1536"
|
||||
},
|
||||
"subStream": {
|
||||
"bitRate": [
|
||||
64,
|
||||
128,
|
||||
160,
|
||||
192,
|
||||
256,
|
||||
384,
|
||||
512
|
||||
],
|
||||
"default": {
|
||||
"bitRate": 160,
|
||||
"frameRate": 7
|
||||
},
|
||||
"frameRate": [
|
||||
15,
|
||||
10,
|
||||
7,
|
||||
4
|
||||
],
|
||||
"profile": [
|
||||
"Base",
|
||||
"Main",
|
||||
"High"
|
||||
],
|
||||
"size": "640*360"
|
||||
}
|
||||
},
|
||||
{
|
||||
"audio": "boolean",
|
||||
"mainStream": {
|
||||
"bitRate": [
|
||||
1024,
|
||||
1536,
|
||||
2048,
|
||||
3072,
|
||||
4096,
|
||||
5120,
|
||||
6144,
|
||||
7168,
|
||||
8192
|
||||
],
|
||||
"default": {
|
||||
"bitRate": 3072,
|
||||
"frameRate": 15
|
||||
},
|
||||
"frameRate": [
|
||||
30,
|
||||
22,
|
||||
20,
|
||||
18,
|
||||
16,
|
||||
15,
|
||||
12,
|
||||
10,
|
||||
8,
|
||||
6,
|
||||
4,
|
||||
2
|
||||
],
|
||||
"profile": [
|
||||
"Base",
|
||||
"Main",
|
||||
"High"
|
||||
],
|
||||
"size": "2304*1296"
|
||||
},
|
||||
"subStream": {
|
||||
"bitRate": [
|
||||
64,
|
||||
128,
|
||||
160,
|
||||
192,
|
||||
256,
|
||||
384,
|
||||
512
|
||||
],
|
||||
"default": {
|
||||
"bitRate": 160,
|
||||
"frameRate": 7
|
||||
},
|
||||
"frameRate": [
|
||||
15,
|
||||
10,
|
||||
7,
|
||||
4
|
||||
],
|
||||
"profile": [
|
||||
"Base",
|
||||
"Main",
|
||||
"High"
|
||||
],
|
||||
"size": "640*360"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"Enc": {
|
||||
"audio": 0,
|
||||
"channel": 0,
|
||||
"mainStream": {
|
||||
"bitRate": 2048,
|
||||
"frameRate": 20,
|
||||
"profile": "Main",
|
||||
"size": "3072*1728"
|
||||
},
|
||||
"subStream": {
|
||||
"bitRate": 64,
|
||||
"frameRate": 4,
|
||||
"profile": "High",
|
||||
"size": "640*360"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
17
examples/response/GetHddInfo.json
Normal file
17
examples/response/GetHddInfo.json
Normal file
@@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetHddInfo",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"HddInfo": [
|
||||
{
|
||||
"capacity": 15181,
|
||||
"format": 1,
|
||||
"id": 0,
|
||||
"mount": 1,
|
||||
"size": 15181
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
40
examples/response/GetMask.json
Normal file
40
examples/response/GetMask.json
Normal file
@@ -0,0 +1,40 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetMask",
|
||||
"code": 0,
|
||||
"initial": {
|
||||
"Mask": {
|
||||
"area": [
|
||||
{
|
||||
"block": {
|
||||
"height": 0,
|
||||
"width": 0,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"screen": {
|
||||
"height": 0,
|
||||
"width": 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"channel": 0,
|
||||
"enable": 0
|
||||
}
|
||||
},
|
||||
"range": {
|
||||
"Mask": {
|
||||
"channel": 0,
|
||||
"enable": "boolean",
|
||||
"maxAreas": 4
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"Mask": {
|
||||
"area": null,
|
||||
"channel": 0,
|
||||
"enable": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
17
examples/response/GetOnline.json
Normal file
17
examples/response/GetOnline.json
Normal file
@@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetOnline",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"User": [
|
||||
{
|
||||
"canbeDisconn": 0,
|
||||
"ip": "192.168.1.100",
|
||||
"level": "admin",
|
||||
"sessionId": 1000,
|
||||
"userName": "admin"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
67
examples/response/GetOsd.json
Normal file
67
examples/response/GetOsd.json
Normal file
@@ -0,0 +1,67 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetOsd",
|
||||
"code": 0,
|
||||
"initial": {
|
||||
"Osd": {
|
||||
"bgcolor": 0,
|
||||
"channel": 0,
|
||||
"osdChannel": {
|
||||
"enable": 1,
|
||||
"name": "Camera1",
|
||||
"pos": "Lower Right"
|
||||
},
|
||||
"osdTime": {
|
||||
"enable": 1,
|
||||
"pos": "Top Center"
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": {
|
||||
"Osd": {
|
||||
"bgcolor": "boolean",
|
||||
"channel": 0,
|
||||
"osdChannel": {
|
||||
"enable": "boolean",
|
||||
"name": {
|
||||
"maxLen": 31
|
||||
},
|
||||
"pos": [
|
||||
"Upper Left",
|
||||
"Top Center",
|
||||
"Upper Right",
|
||||
"Lower Left",
|
||||
"Bottom Center",
|
||||
"Lower Right"
|
||||
]
|
||||
},
|
||||
"osdTime": {
|
||||
"enable": "boolean",
|
||||
"pos": [
|
||||
"Upper Left",
|
||||
"Top Center",
|
||||
"Upper Right",
|
||||
"Lower Left",
|
||||
"Bottom Center",
|
||||
"Lower Right"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"Osd": {
|
||||
"bgcolor": 0,
|
||||
"channel": 0,
|
||||
"osdChannel": {
|
||||
"enable": 0,
|
||||
"name": "FarRight",
|
||||
"pos": "Lower Right"
|
||||
},
|
||||
"osdTime": {
|
||||
"enable": 0,
|
||||
"pos": "Top Center"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
13
examples/response/GetPerformance.json
Normal file
13
examples/response/GetPerformance.json
Normal file
@@ -0,0 +1,13 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetPerformance",
|
||||
"code": 0,
|
||||
"value": {
|
||||
"Performance": {
|
||||
"codecRate": 2154,
|
||||
"cpuUsed": 14,
|
||||
"netThroughput": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
45
examples/response/GetRec.json
Normal file
45
examples/response/GetRec.json
Normal file
@@ -0,0 +1,45 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetRec",
|
||||
"code": 0,
|
||||
"initial": {
|
||||
"Rec": {
|
||||
"channel": 0,
|
||||
"overwrite": 1,
|
||||
"postRec": "15 Seconds",
|
||||
"preRec": 1,
|
||||
"schedule": {
|
||||
"enable": 1,
|
||||
"table": "111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": {
|
||||
"Rec": {
|
||||
"channel": 0,
|
||||
"overwrite": "boolean",
|
||||
"postRec": [
|
||||
"15 Seconds",
|
||||
"30 Seconds",
|
||||
"1 Minute"
|
||||
],
|
||||
"preRec": "boolean",
|
||||
"schedule": {
|
||||
"enable": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"Rec": {
|
||||
"channel": 0,
|
||||
"overwrite": 1,
|
||||
"postRec": "15 Seconds",
|
||||
"preRec": 1,
|
||||
"schedule": {
|
||||
"enable": 1,
|
||||
"table": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
35
examples/response/GetUser.json
Normal file
35
examples/response/GetUser.json
Normal file
@@ -0,0 +1,35 @@
|
||||
[
|
||||
{
|
||||
"cmd": "GetUser",
|
||||
"code": 0,
|
||||
"initial": {
|
||||
"User": {
|
||||
"level": "guest"
|
||||
}
|
||||
},
|
||||
"range": {
|
||||
"User": {
|
||||
"level": [
|
||||
"guest",
|
||||
"admin"
|
||||
],
|
||||
"password": {
|
||||
"maxLen": 31,
|
||||
"minLen": 6
|
||||
},
|
||||
"userName": {
|
||||
"maxLen": 31,
|
||||
"minLen": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"value": {
|
||||
"User": [
|
||||
{
|
||||
"level": "admin",
|
||||
"userName": "admin"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user