当前位置:网站首页>开发那些事儿: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平台也在积极融入视频智能检测分析技术,通过对视频监控场景中的人、车、物进行抓拍、检测与识别,可对异常情况进行智能提醒和通知。感兴趣的用户可以前往演示平台进行体验或部署测试。
边栏推荐
- Is the software of futures pioneer formal and safe? Which futures company is safer to choose?
- 中国乙腈市场预测与战略咨询研究报告(2022版)
- Sword finger offer 20 String representing numeric value
- C language implementation of sum of two numbers [easy to understand]
- Penetration practice vulnhub range Keyring
- Why should you consider using prism
- vulnhub靶场-hacksudo - Thor
- Depth first traversal and breadth first traversal [easy to understand]
- There is a new breakthrough in quantum field: the duration of quantum state can exceed 5 seconds
- Mysql database - Advanced SQL statement (2)
猜你喜欢
ACL 2022 | decomposed meta learning small sample named entity recognition
[beauty detection artifact] come on, please show your unique skill (is this beauty worthy of the audience?)
Intel's open source deep learning tool library openvino will increase cooperation with local software and hardware parties and continue to open
[mathematical modeling] [matlab] implementation of two-dimensional rectangular packing code
String的trim()和substring()详解
Penetration practice vulnhub range Tornado
DNS
From comedians to NBA Zhan Huang, check the encrypted advertisements during this super bowl
Shenyu gateway development: enable and run locally
There is a new breakthrough in quantum field: the duration of quantum state can exceed 5 seconds
随机推荐
Heavy disclosure! Hundreds of important information systems have been invaded, and the host has become a key attack target
整形数组合并【JS】
Source code of new campus errand / campus task platform on mutual station
Vulnhub range hacksudo Thor
Gold, silver and four want to change jobs, so we should seize the time to make up
开发那些事儿:EasyCVR集群设备管理页面功能展示优化
Gold, silver and four job hopping, interview questions are prepared, and Ali becomes the champion
(28) Shape matching based on contour features
Pyqt5, draw a histogram on the control
Is the software of futures pioneer formal and safe? Which futures company is safer to choose?
New patent applications and transfers
At present, where is the most formal and safe account opening for futures speculation? How to open a futures account?
[PHP foundation] realize the connection between PHP and SQL database
pyqt5中,在控件上画柱状图
LeetCode中等题之TinyURL 的加密与解密
期货先锋这个软件正规吗安全吗?选择哪家期货公司更安全?
Detailed explanation of string's trim() and substring()
Leetcode records - sort -215, 347, 451, 75
(17) DAC conversion experiment
[mathematical modeling] [matlab] implementation of two-dimensional rectangular packing code