background analysis
Familiar EasyNVR product of a small partner should know, EasyNVR mainly targeted project security types through RTSP / onvif protocol front-end high-definition network camera IPC, NVR and other access came in, and then the audio and video equipment side by acquisition, conversion, output RTMP , HLS, HTTP-Flv format live streaming, live full platform without plug-ins.
For dynamic website, real-time updates to the site, to obtain real-time information is an essential part through the interface. EasyNVR IPC can access other front-end device must be acquired in real time corresponding to real-time information to the IPC for display.
Here we describe the Ajax to get the data
In EasyNVR channel interface will be described:
- Operation: H5 list display;
- Interface: / api / v1 / getchannels
return:
- All equipment list information, online & offline channels (includes snapshot information)
- Channel name, channel number, channel snapshot, whether online channel
Message:
{
"EasyDarwin" : {
"Body" : {
"ChannelCount" : "2",
"Channels" : [
{
"Channel" : 1,
"Name" : "channel1",
"Online" : 1,
"SnapURL" : "/snap/1/2016-10-24/20161024125212.jpg"
},
{
"Channel" : 2,
"Name" : "channel2",
"Online" : 0,
"SnapURL" : ""
}
]
},
"Header" : {
"CSeq" : "1",
"ErrorNum" : "200",
"ErrorString" : "Success OK",
"MessageType" : "MSG_SC_SERVER_GET_CHANNELS_ACK",
"Version" : "1.0"
}
}
}
Ajax may be performed by the front end access interface to acquire data interfaces; the first observation of the type of data returned; operator returns the data analysis process; and display the returned data as objects traverse;
- Return data in the form of:
{EasyDarwin: {…}}
EasyDarwin
:
Body
:
ChannelCount
:
"6"
Channels
:
Array(6)
0
:
{Channel: 1, Name: "黄山小镇", Online: 1, SnapURL: "/snap/1/channel_1.jpg"}
1
:
{Channel: 2, Name: "科学大道与黄山路交口", Online: 0, SnapURL: ""}
2
:
{Channel: 3, Name: "办公室ONVIF", Online: 0, SnapURL: ""}
3
:
{Channel: 4, Name: "办公室", Online: 0, SnapURL: ""}
4
:
{Channel: 5, Name: "留学生创业园", Online: 0, SnapURL: ""}
5
:
{Channel: 6, Name: "北一环与阜阳北路高架交口", Online: 1, SnapURL: "/snap/6/channel_6.jpg"}
length
:
6
__proto__
:
Array(0)
__proto__
:
Object
Header
:
{CSeq: "1", ErrorNum: "200", ErrorString: "Success OK", MessageType: "MSG_SC_SERVER_GET_CHANNELS_ACK", Version: "v1"}
__proto__
:
Object
__proto__
:
Object
The next major explanation for processing the received data to the front display;
EasyNVR deployment architecture
EasyNVR system deployed in the LAN, through RTSP / Onvif agreement collection of audio and video data into video stream HLS / FLV format, to the network of mobile phones, computers, TV wall to play the show. The program for customers only for use within the enterprise, such as internal monitoring.
EasyNVR system deployed in the LAN, to map EasyNVR address to the public network, mobile phones, computers and other client can access the video EasyNVR collected via the Internet. The program needs to access the Internet for, but a lightly enterprises.
Deployed in multiple outlets each deployed separately EasyNVR system, docking EasyNVS management system in the public network deployment, centralized management of the various outlets. The program for video capture devices scattered in different local area networks, unified management needs and external video output of the project
Department EasyNVR in the unit inside the system, and turn into RTMP, then pushed to the CDN or third-party video distribution system. The program for concurrent users to access a larger project.
EasyNVR scenarios
EasyNVR live for many years in the Internet security industry experience in actual combat, by all sectors of the market testing has become a convenient and secure wide coverage of a mature product, a combination of hardware products and services in all walks of life video infrastructure, while providing secondary development interface to facilitate integration into their enterprise business systems, designed to build their own internet video monitoring platform.
About EasyNVR
EasyNVR have is a full, independent, controllable intellectual property rights, but also can have the function of security software and hardware integration of Internet streaming media server, network camera through a simple channel configuration, monitoring industry inside traditional high-definition network camera IP Camera , etc. with the NVR RTSP, Onvif protocol output device access to EasyNVR, EasyNVR these audio and video data can be video sources is a pull, is converted to RTMP / HLS, full internet terminal H5 live (Web, Android, iOS), and EasyNVR able to broadcast live video source of data to a third party CDN network, Internet-scale distributed. EasyNVR details you may visit the official website: http://www.easynvr.com