Comments (11)
I found @benvirus had fixed this problem by check key uri and store the key: https://github.com/videojs/videojs-contrib-hls/pull/865/files/87304c6c544d8eecd7de90acdd1685e7ee75a998..d308332bb58c6734aa6a3bc15a9a4a836997faa8
but in newer version it's not working anymore.My hls segments encypt with one key file,so the key uri is the same at all.can you add a option like "StoreKey:true",that will be good news for someone like me.
from http-streaming.
Just add this to your options and it will be cached. I was suffering from the same issue with latest build, and finally figured it out
html5: {
vhs: {
cacheEncryptionKeys: true
}
}
notice the vhs, not hls :)
from http-streaming.
Hey @riubin , why is it that the cache expires can't be set by the server?
from http-streaming.
Because the php server need check the session info by valid user that can watch the video. whatever, whether or not set cache expires the php server will be very hevy,but I do not want waste the resource of server. I think any others should have the problems too.
Thank you~
from http-streaming.
Add: The key file will be send to client by php script.client can't get key file directly.
from http-streaming.
Hey @riubin , the problem with caching the key requests by the player is if the keys do expire, the player has no way of knowing to fetch it again from the server. That's why the cache expires header is useful, and the caching can be done outside of the player.
from http-streaming.
You can fork the repo, add the cache key feature like me.
from http-streaming.
We'll review videojs/videojs-contrib-hls#1433 and add this feature to the project
from http-streaming.
👋 Thanks for opening your first issue here! 👋
If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
from http-streaming.
Seems related to #140
from http-streaming.
While we believe appropriate cache-control headers are the optimal solution, we've added an option to not re-request the key on every segment (#446). It is out in version 1.10.0.
from http-streaming.
Related Issues (20)
- HttpStreaming v2.16.3 not build successfully HOT 2
- Support overridenative option dynamically without reload player HOT 1
- Buffering issue while playing content with high bitrate HOT 1
- player.tech() is not available when "xhr-hooks-ready" is called HOT 8
- Support encapsulation of WebVTT in ISO-BMFF HOT 2
- How to get the VOD/live property of the current playing stream from player? HOT 2
- Support for EXT-X-DEFINE in m3u8 files HOT 1
- Memory leak during media source change - [autoplay mode] HOT 2
- Player enters endless seeking state when setting currentTime() to duration() HOT 2
- Stops Requesting TS Files After m3u8 Reset HOT 12
- DRM with DASH is not playing and stuck in loading state HOT 4
- Issue with Playing Multi-Period DASH Stream with Nagra DRM and Google Server-Side Ad Integration HOT 2
- DASH with DAI is not working HOT 2
- How to preload all .ts of m3u8 HOT 2
- DASH playlist cannot scrub forward in time HOT 2
- `xhr-hooks-ready` not working with overrideNative : true HOT 2
- Stream skips back during live stream HOT 2
- JS exceptions when playing m3u8 video streams HOT 2
- add chapter plugin to stream file HOT 1
- Dash non-live stream doesn't play for chrome. HOT 1
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 http-streaming.