当前位置:网站首页>开发那些事儿:EasyCVR平台添加播放地址鉴权
开发那些事儿:EasyCVR平台添加播放地址鉴权
2022-07-01 17:48:00 【TSINGSEE青犀视频】
EasyCVR平台支持海量视频汇聚与管理,基于云边端一体化架构,具有强大的数据接入、处理及分发能力,在功能上,可提供视频直播、云端录像、云存储、录像检索与回看、智能告警、平台级联、智能分析等。近期我们正在对EasyCVR平台进行新功能的拓展,比如集群、电子地图与轨迹追踪、视频轮巡等等,欢迎大家关注我们的更新。
今天和大家分享一下EasyCVR平台添加播放地址鉴权的代码实现过程。
在播放地址上添加鉴权参数,播放时校验参数的合法性。页面请求播放时,根据功能开关,校验播放地址是否添加token,然后返回给前端。代码参考如下:
sc.FLV, _ = GenLiveUrl(hostname, "FLV", int(value.ChannelID), streamMode)
sc.FLV = wrapURLWithLiveToken(sc.FLV, c)
sc.HLS, _ = GenLiveUrl(hostname, "HLS", int(value.ChannelID), streamMode)
sc.HLS = wrapURLWithLiveToken(sc.HLS, c)
sc.RTSP, _ = GenLiveUrl(hostname, "RTSP", int(value.ChannelID), streamMode)
sc.RTSP = wrapURLWithLiveToken(sc.RTSP, c)
sc.Rtmp, _ = GenLiveUrl(hostname, "RTMP", int(value.ChannelID), streamMode)
sc.Rtmp = wrapURLWithLiveToken(sc.Rtmp, c)
sc.WSFLV, _ = GenLiveUrl(hostname, "WS_FLV", int(value.ChannelID), streamMode)
sc.WSFLV = wrapURLWithLiveToken(sc.WSFLV, c)
sc.WSSFLV, _ = GenLiveUrl(hostname, "WSS_FLV", int(value.ChannelID), streamMode)
sc.WSSFLV = wrapURLWithLiveToken(sc.WSSFLV, c)
sc.Rtc, _ = GenLiveUrl(hostname, "WEBRTC", int(value.ChannelID), streamMode)
sc.Rtc = wrapURLWithLiveToken(sc.Rtc, c)再次播放到设定的时间,播放地址会在时效性到期时自动停止播放。
EasyCVR是我们接入协议最广泛的视频管理平台,除了标准协议GB28181、RTSP/Onvif、RTMP等,还支持厂家的私有协议与SDK,如海康Ehome、海康SDK、大华SDK等。
EasyCVR平台也在积极融入视频智能检测分析技术,通过对视频监控场景中的人、车、物进行抓拍、检测与识别,可对异常情况进行智能提醒和通知。感兴趣的用户可以前往演示平台进行体验或部署测试。
边栏推荐
- Petrv2: a unified framework for 3D perception of multi camera images
- 手机开户股票开户安全吗?那么开户需要带些什么?
- JDBC:深入理解PreparedStatement和Statement[通俗易懂]
- Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)
- February 16, 2022 Daily: graph neural network self training method under distribution and migration
- Is it reasonable and safe to open a securities account for 10000 shares free of charge? How to say
- Alibaba cloud Li Feifei: China's cloud database has taken the lead in many mainstream technological innovations abroad
- Nielseniq found that 60% of the re launched products had poor returns
- PHP implements sensitive word filtering system "suggestions collection"
- PIP version problems: PIP problems still occur when installing akshare and using Tsinghua source and Douban source
猜你喜欢

June issue | antdb database participated in the preparation of the "Database Development Research Report" and appeared on the list of information technology and entrepreneurship industries

Penetration practice vulnhub range Tornado

Gold, silver and four want to change jobs, so we should seize the time to make up
![[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON](/img/83/9bd9ce7608ebfe7207ac008b9e8ab1.png)
[splishsplash] about how to receive / display user parameters, MVC mode and genparam on GUI and JSON
![Htt [ripro network disk link detection plug-in] currently supports four common network disks](/img/e4/c06b94243cdbe391b8b2124ff30789.jpg)
Htt [ripro network disk link detection plug-in] currently supports four common network disks

Work and leisure suggestions of old programmers

Apache iceberg source code analysis: schema evolution
![[C language foundation] 12 strings](/img/42/9c024eb08eb935fe66c3aaac7589d8.jpg)
[C language foundation] 12 strings
![Integer array merge [JS]](/img/0d/70535e0eb1c299bda25159b58c70d7.png)
Integer array merge [JS]

Gold, silver and four job hopping, interview questions are prepared, and Ali becomes the champion
随机推荐
两数之和c语言实现[通俗易懂]
Is Huishang futures a regular futures platform? Is it safe to open an account in Huishang futures?
pyqt5中,在控件上画柱状图
vulnhub靶场-hacksudo - Thor
Depth first traversal and breadth first traversal [easy to understand]
Shenyu gateway development: enable and run locally
June issue | antdb database participated in the preparation of the "Database Development Research Report" and appeared on the list of information technology and entrepreneurship industries
【牛客网刷题系列 之 Verilog快速入门】~ 优先编码器电路①
Htt [ripro network disk link detection plug-in] currently supports four common network disks
MySQL -- explain performance optimization
Kia recalls some K3 new energy with potential safety hazards
目前炒期货在哪里开户最正规安全?怎么期货开户?
(12) About time-consuming printing
(28) Shape matching based on contour features
(十六)ADC转换实验
阿里云李飞飞:中国云数据库在很多主流技术创新上已经领先国外
Encryption and decryption of tinyurl in leetcode
PHP implements sensitive word filtering system "suggestions collection"
Research Report on China's enzyme Market Forecast and investment strategy (2022 Edition)
官宣!香港科技大学(广州)获批!