当前位置:网站首页>EasyGBS网络不稳定情况下重复请求视频拉流问题的优化
EasyGBS网络不稳定情况下重复请求视频拉流问题的优化
2022-07-01 18:44:00 【EasyGBS】
EasyGBS是基于国标GB28181协议的视频云服务平台,支持将国标协议的设备统一接入并进行集中管理。平台具备优秀的视频能力,包括视频监控直播、录像、云存储、回放、平台级联、语音对讲、智能告警等功能,在线下场景中已有大量落地应用。

我们在项目测试中发现,EasyGBS通过web页面请求拉流时,在网络不稳定的情况下,用户多次点击播放,会造成后端重复拉流的情况,消耗了设备的流量。此类操作会产生一定的流量费用,尤其是在流量较为敏感的项目中,造成了不必要的花费。因此针对上述情况,我们进行了代码优化。
在网络不稳定的情况下,用户有可能点击多次,导致多次传给后端,后端则会同时多次请求invite,导致这个设备有两路推流,因此设备持续发流,消耗了设备流量,如下图:

解决方法:在请求拉流的方法中,加入锁来控制每个设备同时只能进行一次invite。代码如下:

这样一来,就不会造成设备的重复拉流了。
在视频能力上,EasyGBS可将GB/T28181设备/平台推送的PS流转成ES流,并提供RTSP、RTMP、FLV、HLS、WebRTC等多种格式视频流的分发服务,实现Web浏览器、手机浏览器、微信端、PC客户端等各终端无插件播放。平台基于云边端架构优势,已经在大量的线下场景中应用,包括明厨亮灶、雪亮工程、平安乡村等等。感兴趣的用户可以前去演示平台进行体验或部署测试。
边栏推荐
- Reading the paper [learning to discretely compose reasoning module networks for video captioning]
- [6.24-7.1] review of wonderful technical blog posts in the writing community
- 数商云:从规划到落地,五矿集团如何快速构建数字化发展新格局?
- B2B e-commerce platform solution for fresh food industry to improve the standardization and transparency of enterprise transaction process
- 赋能「新型中国企业」,SAP Process Automation 落地中国
- Solidity - contract structure - error - ^0.8.4 NEW
- Love business in Little Red Book
- Lake shore optimag superconducting magnet system om series
- Parallelism, concurrency and life cycle of threads
- 小红书上的爱情买卖
猜你喜欢

Lumiprobe 自由基分析丨H2DCFDA说明书

数商云:从规划到落地,五矿集团如何快速构建数字化发展新格局?

Bao, what if the O & M 100+ server is a headache? Use Xingyun housekeeper!

Prices of Apple products rose across the board in Japan, with iphone13 up 19%

Solution of intelligent supply chain management platform in aquatic industry: support the digitalization of enterprise supply chain and improve enterprise management efficiency

原生js打造日程表-支持鼠标滚轮滚动选择月份-可以移植到任何框架中

pickle.load报错【AttributeError: Can‘t get attribute ‘Vocabulary‘ on <module ‘__main__‘】

Solidity - truncated and checked modes of arithmetic operations - new features of 0.8.0

智慧防疫系统为建筑工地复工复产提供安全保障
![[to.Net] C set class source code analysis](/img/59/4c7b910bc6505e5f81015ce80812fc.png)
[to.Net] C set class source code analysis
随机推荐
Games202 operation 0 - environment building process & solving problems encountered
B2B e-commerce platform solution for fresh food industry to improve the standardization and transparency of enterprise transaction process
一次SQL优化,数据库查询速度提升 60 倍
【pytorch记录】自动混合精度训练 torch.cuda.amp
Appgallery connect scenario development practice - image storage and sharing
[AGC] how to solve the problem that the local display of event analysis data is inconsistent with that in AGC panel?
Witness the times! "The future of Renji collaboration has come" 2022 Hongji ecological partnership conference opens live broadcast reservation
sql查询去重统计的方法总结
机械设备行业数字化供应链集采平台解决方案:优化资源配置,实现降本增效
Digital business cloud: from planning to implementation, how does Minmetals Group quickly build a new pattern of digital development?
Shell array
Netease games, radical going to sea
Mipi interface, DVP interface and CSI interface of camera [easy to understand]
【Go ~ 0到1 】 第五天 7月1 类型别名,自定义类型,接口,包与初始化函数
Solidity - contract structure - error - ^0.8.4 NEW
Dom4j parsing XML, XPath retrieving XML
Helium transmission line of lake shore cryostat
Write it down once Net travel management background CPU Explosion Analysis
Solidity - truncated and checked modes of arithmetic operations - new features of 0.8.0
市值蒸发740亿,这位大佬转身杀入预制菜