当前位置:网站首页>EasyCVR接入Ehome协议的设备,无法观看设备录像是什么原因?
EasyCVR接入Ehome协议的设备,无法观看设备录像是什么原因?
2022-06-28 16:42:00 【TSINGSEE青犀视频】
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优秀的视频能力表现在其丰富的视频功能、低延时传输、全终端兼容、支持多种网络环境等多方面,平台可实现的视频功能包括视频监控直播、云端录像、云存储、录像检索与回看、智能告警、平台级联等,可应用在智慧工厂、智慧工地、智慧安防、智慧校园、智慧水利等场景中。感兴趣的用户可以前往演示平台进行体验或部署测试。
边栏推荐
- Can SQL queries be used in the tablestore to find out all the data in the table?
- Solve the problem that subcomponents will not be destroyed through setTimeout
- ARM9开发之学习过程总结[通俗易懂]
- LTspice 电路仿真入门
- 共享主机和 WordPress 主机之间的区别
- With high concurrency, high availability and elastic expansion, Tianyi cloud escorts Enterprise Cloud business
- C#/VB. Net to convert PDF to excel
- 【TcaplusDB知识库】查看tcapdir目录服务器
- 这个简单的小功能,半年为我们产研团队省下213个小时
- What you have to know under the digital collection boom
猜你喜欢

Potplayer plays Baidu cloud disk video

O & M - unified gateway is very necessary

"Popular science leaders say" intelligent bionic robot fish

Cross cluster deployment of helm applications using karmada

关于接口测试自动化的总结与思考

The new paradigm of AI landing is "hidden" in the next major upgrade of software infrastructure

It's completely cold! Tencent's well-known software was taken off the shelves, and netizens were all sobbing...

Cloud sports, 360 ° witnessing speed and passion

【尚硅谷与腾讯云官方合作】硅谷课堂项目视频发布

知乎热问:一个程序员的水平能差到什么程度?
随机推荐
Subscription publishing mode bus in JS
Tianyi cloud web application firewall (edge cloud version) passed the first batch of trusted authentication
[daily 3 questions (2)] maximum ascending subarray sum
小新黑苹果声卡ID注入
[tcapulusdb knowledge base] Introduction to tcapulusdb restrictions
Must the database primary key be self incremented? What scenarios do not suggest self augmentation? ByteDance experience sharing using Flink state 𞓜 afternoon tea with sauce issue 16
Yesterday, metauniverse | Wal Mart set up an innovation department to explore metauniverse and Web3, and Dior released the metauniverse Exhibition
[force button] 35 Search insert location
How to clear the cache in WordPress
From five capabilities to "1+5+n", Huawei makes the transformation of government and enterprises more stable
如何清除 WordPress 中的缓存
【Hot100】2. Add two numbers
DPDK 20.11编译安装运行程序
关于接口测试自动化的总结与思考
如何在网站上安装 WordPress
Can Huawei become a "brother of lipstick" or a "Queen of goods"?
This simple little function saves 213 hours for our production research team in half a year
PID control details [easy to understand]
一步一步教你制作的第一个 WordPress 插件
老司机总结的12条 SQL 优化方案(非常实用)