Partial offline support
See original GitHub issueI have had a look into offline support in shaka player 2.1.3 and noticed that it really only applies (currently) in ChromeOS.
I have had a tinker in storage.js
and with a custom ManifestParser to get a partial offline scenario working where the content is downloaded but the license check to the remote Uri still occurs.
This would help out people who can pre download the content before traveling to a place with terrible/metered internet (hotels).
Would you accept a PR or discussion for this? I am in the middle of a POC for it, but the main chokepoints of change are:
storage.js:301
(where storage initialises the drmengine with a hardcodedisOffline=true
parameter)- '
storage:425
(same as above) - 'drm_engine.js:232` (which is called from the above methods, does some checks against the media keys available)
I think what I want is to tell the storage api that I still want a temporary license (instead of it forcing a persistent-license (which has the flow on effect in drm_engine of checking the persistent-license session type).
Good idea / bad idea?
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (10 by maintainers)
No, I’m taking care of it real quick. Sorry about that. I should have noticed these things before merging. 😃
OK, are you doing that, or do you want me to submit another PR?