Giter VIP home page Giter VIP logo

Comments (11)

riubin avatar riubin commented on August 22, 2024 4

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.

hasinhayder avatar hasinhayder commented on August 22, 2024 2

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.

gesinger avatar gesinger commented on August 22, 2024

Hey @riubin , why is it that the cache expires can't be set by the server?

from http-streaming.

riubin avatar riubin commented on August 22, 2024

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.

riubin avatar riubin commented on August 22, 2024

Add: The key file will be send to client by php script.client can't get key file directly.

from http-streaming.

gesinger avatar gesinger commented on August 22, 2024

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.

benvirus avatar benvirus commented on August 22, 2024

You can fork the repo, add the cache key feature like me.

from http-streaming.

forbesjo avatar forbesjo commented on August 22, 2024

We'll review videojs/videojs-contrib-hls#1433 and add this feature to the project

from http-streaming.

welcome avatar welcome commented on August 22, 2024

👋 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.

phloxic avatar phloxic commented on August 22, 2024

Seems related to #140

from http-streaming.

gkatsev avatar gkatsev commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.