当前位置:网站首页>EasyCVR接入Ehome协议的设备,无法观看设备录像是什么原因?
EasyCVR接入Ehome协议的设备,无法观看设备录像是什么原因?
2022-06-29 00:45:00 【EasyCVR】
EasyCVR平台支持海量视频汇聚与管理、处理与分发、智能分析等视频能力,在接入协议上,不仅支持国标GB28181协议、RTSP/Onvif、RTMP等标准协议,还支持HIKSDK、大华SDK、海康Ehome等厂家私有协议与SDK。平台基于云边端一体化架构,将复杂多变的底层资源统一管理起来,并能合理调度资源、共享信息、数据交互,让系统变得更高效、稳定,实现各模块更好地协作。

EasyCVR平台支持通过GB/T28181、Ehome协议从海康、大华、宇视等摄像头、网络硬盘录像机NVR等设备中,按设备、通道、日期获取对应录像文件进行录像的检索与回放,无需安装各个安防厂商的视频播放插件。
有用户反馈,EasyCVR接入的Ehome协议的设备,出现了无法观看设备录像的情况,请求我们排查协助。今天和大家分享一下排查及解决过程。

在排查过程中发现,前端播放设备录像时,将请求发送到后端,但是后端没有转发给设备,因此导致设备录像无法观看。
添加如下代码,可将Ehome协议接入的设备查询出来的设备录像,在播放时传入对应的文件名称给设备,根据回调出来的流数据,推送给对应的内核地址,最后将回看的播放地址返回给前端。

f := func() (string, int, error) {
ret, err := dev.PlaybackStart(channel, smshost, playbackPort, name, offset)
if err == nil {
//更新播放信息
obj := &ehomedo.EhomeChannelPlayback{
ID: 0,
ChannelID: fmt.Sprintf("%d", channel),
DeviceID: devID,
FileName: name,
Offset: offset,
PlaybackHandle: -1,
SessionID: ret,
CreatedAt: utils.DateTime{},
UpdatedAt: utils.DateTime{},
}
ehomedo.GetChannelPlaybackDao().Update(obj)
//通道参数
channelInfo, err := ehomedo.GetChannelDao().Get(obj.ChannelID, devID)
修改后,再次尝试播放,设备录像已经显示正常。

EasyCVR优秀的视频能力表现在其丰富的视频功能、低延时传输、全终端兼容、支持多种网络环境等多方面,平台可实现的视频功能包括视频监控直播、云端录像、云存储、录像检索与回看、智能告警、平台级联等,可应用在智慧工厂、智慧工地、智慧安防、智慧校园、智慧水利等场景中。感兴趣的用户可以前往演示平台进行体验或部署测试。

边栏推荐
- Is l1-031 too fat (10 points)
- How the slip ring motor works
- sql入门
- 大智慧上开户是安全的吗
- Daily English articles, reading accumulation
- Nodejs安装和下载
- JVM底层又是如何实现synchronized的
- How to calculate the income tax of foreign-funded enterprises
- [MCU club] design of GSM version of range hood based on MCU [simulation design]
- 浏览器缓存库设计总结(localStorage/indexedDB)
猜你喜欢

Install MySQL on Windows platform (with Navicat premium 12 "using" tutorial)
![[image detection] line recognition based on Hough transform (fitting angle bisector) with matlab code](/img/29/a3dc68ebc958ff96c3d8cc771a84f1.jpg)
[image detection] line recognition based on Hough transform (fitting angle bisector) with matlab code

How to mount FSS object storage locally

Leetcode daily question: implementing strstr()
![[gym 102423]-elven efficiency | thinking](/img/cf/b65f3db1580a83478f8351cea22040.png)
[gym 102423]-elven efficiency | thinking

Daily question 1: the number of numbers in the array
![[communication] wide band source DOA estimation method based on incoherent signal subspace (ISM)](/img/5d/bee9a6e50384a7e05e9a71e9fbed9a.jpg)
[communication] wide band source DOA estimation method based on incoherent signal subspace (ISM)

每日一题:数组中数字出现的次数2
![[MCU club] design of blind water cup based on MCU [physical design]](/img/06/93d7a8fd97cdccbc639d2a95b10826.jpg)
[MCU club] design of blind water cup based on MCU [physical design]

PR 2021 quick start tutorial, how to use audio editing in PR?
随机推荐
Matrix compression
Is it safe to open an account on great wisdom
2022_ 2_ 16 the second day of learning C language_ Constant, variable
JDBC连接、断开数据库的封装
If you can play these four we media operation tools, the sideline income of 6000+ is very easy
滑环的基本结构及工作原理分析
What is contemporaneous group analysis? Teach you to use SQL to handle
Daily question 1: the number of numbers in the array 2
Haskell configuring vs code development environment (june2022)
scp拷贝文件夹
企业和IT领导者对创新的误解
12. object detection mask RCNN
毕业三年的25岁码农总结
每日一题:数组中数字出现的次数2
How to calculate the income tax of foreign-funded enterprises
Single machine multi instance MySQL master-slave replication
使用.Net驱动Jetson Nano的OLED显示屏
搭建单机 nacos 负载均衡ribbon 轮询策略 权重2种方式
运营级智慧校园系统源码 智慧校园小程序源码+电子班牌+人脸识别系统
Reprint: VTK notes - clipping and segmentation - irregular closed loop clipping -vtkselectpolydata class (black mountain old demon)