Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to create a CDM for each electron application to download a widevine offline licence? #154

Open
anysongs opened this issue Apr 17, 2023 · 1 comment

Comments

@anysongs
Copy link

Versions
electron : 6.0.0
shakaplayer:2.4.0

What actually happened?
We want to download thousands of offline widevine licenses to play content without internet, which is taking more than 5 hours. We want to optimise the offline license storage time. Every offline licence store takes 2 seconds to reduce time. If we did multiple parallel downloads, then also it took the same time.

What did you do and What did you expect to happen?
Initially, we were downloading widevine offline licence requests and storing them one by one using shakaplayer; we thought that multiple parallel requests would solve the issue, but with parallel requests, the issue was not resolved, and we observed The session update method time got longer based on the number of requests. After the parallel attempt failed, I attempted to create a CDM for each application but was unable to do so.
Is there a procedure for creating a CDM path for each application? ,Please give any ideas to reduce offline licence download time.

@khwaaj
Copy link
Collaborator

khwaaj commented Apr 17, 2023

Are you seeing the same behavior if you try this in Chrome? I ask because this seems more related to CDM behavior than ECS, but if there is a large difference in performance we may need to investigate why (because there shouldn't be).

Another thought, as it is not entirely clear from your statement above. Are you closing the MediaKeySession after retrieving the persistent license? Keeping many open sessions may have detrimental performance impact on the CDM. I've not actually tried something like this myself, at least not with the Widevine Browser CDM (and in other cases the network roundtrips were the time consuming part - not the CDM), so I'm not sure what to expect. I'm guessing something like this would not be a priority use-case for the Widevine Browser CDM though, so it is entirely possible the performance is not a major consideration...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants