当前位置:网站首页>Easycvr Video Square snapshot adding device channel offline reason display
Easycvr Video Square snapshot adding device channel offline reason display
2022-07-28 04:48:00 【EasyCVR】
EasyCVR The platform supports multiple protocols 、 Multiple types of device access , Have flexible and rich video capabilities , The realizable functions include real-time video monitoring and live broadcasting 、 Cloud video 、 Cloud storage 、 Playback and retrieval 、 Intelligent alarm 、 Video snapshot 、 Video transcoding and distribution 、 Platform cascade, etc .

There's user feedback , In the use of EasyCVR During on-site operation , Sometimes I come across RTSP The access channel shows the offline situation , But I don't know why , I hope technicians can help optimize .

After receiving feedback , Technicians developed this requirement . The functional design logic is as follows :
First, detect the offline status of the channel , When the channel configuration is detected RTSP After the address cannot get the data information correctly , Store the cause and status of the error into the corresponding channel , When the front-end call gets the channel information and returns , Return the corresponding error message to the display .
The reference codes are as follows :

for _, value := range *channels {
clusterInfo, _ := clusterMap[value.ServerID]
tdevID := -1
tdevName := ""
if devInfo {
tv, tok := devList.Get(fmt.Sprintf("%s", value.ParentDeviceID))
if tok {
mv, mok := tv.(cvrdo.Device)
if mok {
tdevID = int(mv.DeviceID)
tdevName = mv.DeviceName
}
} else {
tdev, e := cvrdao.GetDeviceDao().Get(value.ParentDeviceID)
if e == nil {
devList.Set(fmt.Sprintf("%s", value.ParentDeviceID), *tdev, -1)
tdevID = int(tdev.DeviceID)
tdevName = tdev.DeviceName
}
And when I'm done , Check the offline channel effect again , The snapshot page has displayed the prompt that the device is offline , It helps to quickly locate problems during troubleshooting .

EasyCVR The video fusion cloud platform has rich video capabilities 、 Strong compatibility 、 High openness , It can be used for a variety of terminals (PC The computer 、 mobile phone 、 Flat 、 Electronic large screen, etc ) distribution RTSP、RTMP、FLV、HLS、WebRTC Video streams of the same format , In terms of video access, it can also support most video monitoring devices on the market , It can be done by GB28181、RTMP、RTSP/Onvif、 The sea, SDK、 Dahua SDK、Ehome And other protocols , Interested users can go to the demonstration platform for experience or deployment testing .

边栏推荐
- could only be written to 0 of the 1 minReplication nodes. There are 0 datanode(s) running and 0 node
- 启发国内学子学习少儿机器人编程教育
- np. unravel_ Index() finds the index value of an element (or group of elements) of the array after being pulled into one dimension. The corresponding index value in the original dimension (or specify
- MySQL数据库————初识数据库
- Efficient practice intelligent analysis of massive log data in aviation industry
- Reading of seq2path: generating sentimental tuples as paths of a tree
- Important SQL server functions - string utilities
- 05.01 string
- 【sylar】框架篇-Chapter14-TcpServer 模块
- Strlen introduction, and the difference between sizeof
猜你喜欢

C语言ATM自动取款机系统项目的设计与开发

【二、移动web网页开发】2D&3D转换与动画、移动端布局、响应式布局

(clone virtual machine steps)

Phpstorm2022 connect to the database

Space complexity calculation super full sorting!! (calculation of hand tearing complexity

Mysql database -- first knowledge database
![[daily question 1] 735. Planetary collision](/img/ba/0ef08ff874f1ddad3fa79b01dba61f.png)
[daily question 1] 735. Planetary collision

Leetcode 454. Adding four numbers II

100 lectures on Excel practical application cases (XI) - tips for inserting pictures in Excel

Observable time series data downsampling practice in Prometheus
随机推荐
[function document] torch Histc and paddle Histogram and numpy.histogram
NAT基本原理与私有IP
Explain initialization list
网络安全基本知识——密码(一)
【sylar】实战篇-基于 redis 的参数查询服务
[Sylar] framework -chapter24- support business modularization
【sylar】框架篇-Chapter8-定时器模块
How to upgrade a pair of 12.2 RAC(primary) and a pair of 12.2 RAC(dataguard) to 19c
Artificial intelligence and RPA technology application (I) -rpa Hongji product introduction, designer interface function explanation
mysql分区表改造
Design and development of C language ATM system project
MySQL partition table transformation
Blooming old trees -- quickly build a map bed application with imageprocessor
set与list性能对比
动态sql和分页
Cmake usage base summary
[Sylar] framework -chapter15 stream module
【sylar】框架篇-Chapter14-TcpServer 模块
np. The data returned from delete details is the data after deleting the specified dimension
Performance comparison between set and list