文章目录
info Module
API instructions
Abtain pubilc information, en/decoding, logo place, device name, serial number
Request
- Method: GET/POST
- URL:
info/get.json
- Headers:
- submission parameters: No
Response
- Body
{
"result": "ok",
"data": {
"copyright": "Decoder",
"logosrc": "logo.png",
"name": "Decoder",
"serialNumber": "000000000"
}
}
return instruction:
field | type | instruction |
---|---|---|
copyright | alphabetic string | device model?Copyright description? |
logosrc | alphabetic string | device Logo file name,related reference address”/img/“+logosrc,for example /img/logo.png |
name | alphabetic string | device name,new version will support modifying from users。 |
serialNumber | alphabetic string | device serial number |
calling test:
http://192.168.2.123/api/info/get.json
check if SRT is available
API instruction
check if SRT is available
Request
- Method: GET/POST
- URL:
info/checkSRT.json
- Headers:
- submission parameters: No
Response
- Body
{
"result": "ok",
"data": {
"enable": 1
}
}
Return instruction:
field | type | instruction |
---|---|---|
enable | numerical value | 1:enable;0:not enable |
calling test:
http://192.168.2.123/api/info/checkSRT.json
API instruction
gain data that supports navigation bars
Request
- Method: GET/POST
- URL:
info/nav.json
- Headers:
- submission parameters: No
Response
- Body
{
"result": "ok",
"data": {
"main_nav": [
{
"href": "index.html",
"en_text": "Media",
"zh_text": "media"
},
{
"href": "sip_GB.html",
"en_text": "SIP/GB28181",
"zh_text": "SIP/GB28181"
},
{
"href": "flowservice.html",
"en_text": "Stream",
"zh_text": "stream "
},
{
"href": "networksetup.html",
"en_text": "Network",
"zh_text": "network"
}
],
"sys_nav": [
{
"href": "users.html",
"en_text": "User Manage",
"icons": "fa fa-user-md",
"zh_text": "user management"
},
{
"href": "system-time.html",
"en_text": "System Time",
"icons": "glyphicon glyphicon-time",
"zh_text": "system time"
},
{
"type": "reset",
"en_text": "Reset",
"icons": "fa fa-refresh",
"zh_text": "quick reset"
},
{
"type": "reboot",
"en_text": "Reboot",
"icons": "glyphicon glyphicon-repeat",
"zh_text": "reboot"
},
{
"type": "restore",
"en_text": "Restore",
"icons": "glyphicon glyphicon-info-sign",
"zh_text": "restore factory settings"
},
{
"href": "firmwareudp.html",
"en_text": "Firmware",
"icons": "fa fa-hdd-o",
"zh_text": "firmware update"
}
]
}
}
calling test:
http://192.168.2.123/api/info/nav.json