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

边栏推荐
- Go1.18 new feature: discard strings Title Method, a new pit!
- Baidu online disk login verification prompt: unable to access this page, or the QR code display fails, the pop-up window shows: unable to access this page, ensure the web address....
- FATAL ERROR: Could not find ./ bin/my_ print_ Solutions to defaults
- How to guarantee the delivery quality through the cloud effect test plan
- [MCU club] design of blind water cup based on MCU [simulation design]
- Chrome浏览器的基本使用
- 旋转接头安装使用注意事项
- 单机多实例MYSQL主从复制
- Cross domain problem of canvas drawing caused by background image cache
- Difference between applying for trademark in the name of individual and company
猜你喜欢

Daily question 1: missing numbers

Go1.18 new feature: discard strings Title Method, a new pit!

Getting started with SQL

Reference materials in the process of using Excel

12. object detection mask RCNN

What is redis

Single machine multi instance MySQL master-slave replication

Use and principle of handlerthread

Daily question 1: remove elements

Baidu online disk login verification prompt: unable to access this page, or the QR code display fails, the pop-up window shows: unable to access this page, ensure the web address....
随机推荐
Encapsulation of JDBC connection and disconnection database
使用.Net驱动Jetson Nano的OLED显示屏
卷绕工艺与叠片工艺的对比
Precautions for installation and use of rotary joint
同期群分析是什么?教你用 SQL 来搞定
[leetcode] 522. Longest special sequence II violence + double pointer
Excel使用过程中的参考资料
If you can play these four we media operation tools, the sideline income of 6000+ is very easy
Matrix compression
Browser cache library design summary (localstorage/indexeddb)
【UVM】我的 main_phase 都跑完了,为啥 case 无法退出?太不讲道理!
成功解决(机器学习分割数据问题):ModuleNotFoundError: No module named ‘sklearn.cross_validation‘
SCP copy folder
每日一题: 数组中数字出现的次数
戴口罩人臉數據集和戴口罩人臉生成方法
WPF 实现心电图曲线绘制
How to guarantee the delivery quality through the cloud effect test plan
Summary of the 25-year-old Ma Nong who graduated three years ago
利用verilogA模块采样
由背景图缓存导致的canvas绘图跨域问题