Open anysongs opened 1 year ago
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...
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.