-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
delayLicenseRequestUntilPlayed configuration breaks offline storage of protected assets #2218
Comments
It looks like the |
I would like to allow the user to download only the manifest file and saved it locally. The license, downloaded separetely, would be valid only for a specific amount of time. Once it is expired the user would have to just download a new license without having to download the manifest file again. |
You can set the If you store the license offline, then there is no way to renew it. See #1347 for a feature request to allow this, but it is on the backlog and the PR hasn't been updated recently. We have no control over how long the license is good for. Your license proxy sets the license duration settings. You can control for how long a user can watch the content, but that is done with the license proxy. You should contact Widevine (or PlayReady, or another DRM provider) for more info on that. |
When storing assets offline with the storage system, the DRM engine is used if the asset is protected. However, we never attach the DRM engine, which means it never gets an associated video. When the delayLicenseRequestUntilPlayed config value is set, the DRM engine checks the paused status of the video; thus, if there is no video element, the DRM engine errors and the download fails. It would be fairly simple to make the DRM engine attach the video, but honestly, the delayLicenseRequestUntilPlayed parameter doesn't make sense for offline storage anyway. So this just changes the DRM engine to ignore delayLicenseRequestUntilPlayed if it has no video. Fixes #2218 Change-Id: If4e8d24fdcd1eca81cc39b845e5a833a3f1ce5e6
Hi there,
I have developed a Shakaplayer player prototype to use “delay license request”. However, I get an error "Cannot read property 'paused' of null at Xc.p.Fe " even using the manifest file and licence taken from your Shalkaplayer demo page (https://shaka-player-demo.appspot.com/demo/#audiolang=en-GB;textlang=en-GB;uilang=en-GB;panel=HOME;build=uncompiled).
https://test-dds-pwa-bucket.s3-eu-west-1.amazonaws.com/player/index.html.
Please let me know. Thank you in advance
The text was updated successfully, but these errors were encountered: