当前位置:网站首页>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 .

边栏推荐
- [function document] torch Histc and paddle Histogram and numpy.histogram
- 【sylar】框架篇-Chapter23-模块篇总结
- Use animatedbuilder to separate components and animation, and realize dynamic reuse
- [每日一氵]上古年代的 Visual Studio2015 安装
- printf()打印char* str
- Rendering process, how the code becomes a page (I)
- Gerrit operation - rollback a patch_ set
- Redis类型
- 提升学生群体中的STEAM教育核心素养
- 【sylar】框架篇-Chapter10-Address 模块
猜你喜欢
![Geely AI interview question [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]](/img/18/27a86595eb3a7d30df359d6b2b8d8c.png)
Geely AI interview question [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]

【Oracle】083错题集

excel实战应用案例100讲(十一)-Excel插入图片小技巧

Introduction to this pointer

字符串0123456789abcdef,子串(非空且非同串本身)的个数是多少【杭州多测师】【杭州多测师_王sir】...

High number_ Chapter 4__ curvilinear integral

Domain name (subdomain name) collection method of Web penetration
![[Hongke technology] Application of network Multimeter in data center](/img/28/2ecc5a7a766454968819c7748fe48e.png)
[Hongke technology] Application of network Multimeter in data center
![[idea] check out master invalid path problem](/img/83/d36362ba314177cd6f1f74f3e922cd.png)
[idea] check out master invalid path problem

机器人教育在STEM课程中的设计研究
随机推荐
阿里巴巴面试题【杭州多测师】【杭州多测师_王sir】
Redis type
Angr(十一)——官方文档(Part2)
【sylar】框架篇-Chapter23-模块篇总结
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
启发国内学子学习少儿机器人编程教育
(clone virtual machine steps)
mysql分区表改造
What to do when encountering slow SQL? (next)
Take out system file upload
Observable time series data downsampling practice in Prometheus
[每日一氵]上古年代的 Visual Studio2015 安装
你必需要了解的saas架构设计?
物联网工业串口转WiFi模块 无线路由WiFi模块的选型
01 node express system framework construction (express generator)
High number_ Chapter 4__ Curvilinear integral_ Exercise solution
Design and development of C language ATM system project
[function document] torch Histc and paddle Histogram and numpy.histogram
Phpstorm2022 connect to the database