This is an old revision of the document!
* Notice:
All the follow steps need the device to be online
You can use the web ceiba to check the device' online status and device's Serial No.
*
Basic info:(IP and Port is the web ceiba used, the default port is 12056)
Device Serial No.: 0089000EFD
Server address:http://IP:12056/
Login username: username
Logoin password: password
KEY:zT908g2j9ng4xe0Nr2n1bvhbSblgS24wXjZV3o9wsVfNq0q3nEdl%2Fw%3D%3D
Demo url: http://IP:12056/h5demo/index.html
API help url:http://IP:12056/help/api/default.html
*
LiveView:
*
Step1: Get key
http://IP:12056/api/v1/basic/key?username=username&password=password
Return: {"data":{"key":"zT908g2j9ng4xe0Nr2n1bvhbSblgS24wXjZV3o9wsVfNq0q3nEdl%2Fw%3D%3D"},"errorcode":200}
*
Step2: Get liveview port:
Return: {"data":[{"port":12060},{"port":12061},{"port":12062},{"port":12063}],"errorcode":200}
*
Step3: Get liveview url:
http://IP:12056/api/v1/basic/live/video?key=zT908g2j9ng4xe0Nr2n1bvhbSblgS24wXjZV3o9wsVfNq0q3nEdl%2Fw%3D%3D
&terid=0089000EFD&chl=1&audio=1&st=0&port=12060&dt=mdvr
*
Return:{"data":{"url":"http://IP:12060/live.flv?devid=0089000EFD&chl=1&st=0&isaudio=1&dt=mdvr"},"errorcode":200}
*
Step4: Open demo and input the url to open the liveview;
*
*
*
Playback:
*
Step 1, Search the record list:
Return:{"data":[{"name":"0-58-0","filetype":1,"chn":2,"starttime":"2019-04-18 00:14:42","endtime":"2019-04-18 00:14:42"},{"name":"0-58-1","filetype":1,"chn":2,"starttime":"2019-04-18 00:14:42","endtime":"2019-04-18 00:14:48"},{"name":"0-60-0","filetype":1,"chn":3,"starttime":"2019-04-18 00:14:42","endtime":"2019-04-18 00:14:48"},{"name":"0-61-0","filetype":1,"chn":4,"starttime":"2019-04-18 00:14:42","endtime":"2019-04-18 00:14:48"},{"name":"0-63-0","filetype":1,"chn":1,"starttime":"2019-04-18 00:14:42","endtime":"2019-04-18 00:14:48"}],"errorcode":200}
*
Step 2, Get the playback url:
Return:{"data":{"url":"http://IP:8090/play/00880038EE/1/20190418001442_20190418001448_main.m3u8"},"errorcode":200}
*
Step3, playback
Fill "http://IP:8090/play/00880038EE/1/20190418001442_20190418001448_main.m3u8" in the demo will be playback