Comments (1)
@asleep2
403只是服务器响应客户端请求的一个状态值,它可以是403,也可以是404 等等,重要的是让非法请求无法正常请求到 key 文件即可。
参考过程:
- 你在发起请求 key 文件时,服务端响应的过程中,会先判断当前请求是否包含合法的校验数据,如有效token,有效时间,有效用户权限等等。
- 如果合法,则返回正常的200状态值,使客户端能够正常解析key文件,并能正常播放视频。
- 否则返回异常的数据,使得客户端无法正常解析key文件,无法正常播放视频,也就达到了加密的目的。
from video-hls-encrypt.
Related Issues (20)
- 貌似视频播放不完整 HOT 1
- 输入需要播放的视频名称写什么路径? HOT 1
- Cannot find ffmpeg
- /upload-video路由下加密返回失败的问题 HOT 1
- bin文件安全性 HOT 1
- 解密播放时长变短 HOT 3
- 同一局域网下,另一台电脑无法播放HLS视频 HOT 3
- 这个可以用在微信小程序中进行视频加密吗? HOT 1
- 问一下这个网站您能看的懂是什么加密吗? HOT 1
- 无法使用videojs播放 HOT 6
- 本地测试ok,vps测试app crashed - waiting for file changes before starting... HOT 1
- 还有些问题,想请教下你 HOT 3
- FFMPEG的save函数没权限 HOT 1
- 请教两个问题 1.怎么在ipfs上用这个项目? 2.音频文件是否也可以用此项目来加密呢? HOT 7
- 请问到这一步后该怎么做? HOT 4
- 嗨,我找到了一个切片处理视频的帖子,感觉跟你的项目原理相似。 HOT 1
- 这种加密有用吗 HOT 1
- 每一个分片都需要请求一个key吗 HOT 4
- nginx-vod-module + hls.js 可以实现类似功能 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from video-hls-encrypt.