当前位置:网站首页>开发那些事儿: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平台也在积极融入视频智能检测分析技术,通过对视频监控场景中的人、车、物进行抓拍、检测与识别,可对异常情况进行智能提醒和通知。感兴趣的用户可以前往演示平台进行体验或部署测试。
边栏推荐
- DNS
- Mysql database - Advanced SQL statement (2)
- Key points on February 15, 2022
- MES production equipment manufacturing execution system software
- Research Report on development monitoring and investment prospects of China's smart environmental protection industry (2022 Edition)
- DNS
- (十六)ADC转换实验
- RadHat搭建内网YUM源服务器
- Kernel stray cat stray dog pet adoption platform H5 source code
- Smart factory digital management system software platform
猜你喜欢

DNS

Penetration practice vulnhub range Nemesis

People help ant help task platform repair source code

Intelligent operation and maintenance practice: banking business process and single transaction tracking

Apache iceberg source code analysis: schema evolution

Official announcement! Hong Kong University of science and Technology (Guangzhou) approved!

Why should you consider using prism

Data warehouse (3) star model and dimension modeling of data warehouse modeling

剑指 Offer 20. 表示数值的字符串

Gold, silver and four job hopping, interview questions are prepared, and Ali becomes the champion
随机推荐
[C supplement] [string] display the schedule of a month by date
Sword finger offer II 105 Maximum area of the island
Cassette helicopter and alternating electric field magnetic manometer DPC
【Try to Hack】vulnhub DC4
Smart factory digital management system software platform
Openlayers 自定义气泡框以及定位到气泡框
Vulnhub range hacker_ Kid-v1.0.1
Why should you consider using prism
Roewe rx5's "a little more" product strategy
Data warehouse (3) star model and dimension modeling of data warehouse modeling
阿里云李飞飞:中国云数据库在很多主流技术创新上已经领先国外
Sword finger offer 20 String representing numeric value
[beauty detection artifact] come on, please show your unique skill (is this beauty worthy of the audience?)
Gameframework eating guide
[Verilog quick start of Niuke network question brushing series] ~ priority encoder circuit ①
Rotation order and universal lock of unity panel
Research Report on China's enzyme Market Forecast and investment strategy (2022 Edition)
Penetration practice vulnhub range Keyring
vulnhub靶场-hacksudo - Thor
pyqt5中,在控件上画柱状图