-
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
Support persistent licenses and offline in Shaka v2 #343
Comments
Hi,
|
Will the persistent license or storing license service be availed on chrome desktop ? I tried using "persistentstaterequired" parameter in DRM config, in the basic tutorial available from documentation . below is what I have included in player.configure option : player.configure({
drm: {
servers: {
'com.widevine.alpha': 'url',
},
advanced: {
'com.widevine.alpha': {
'persistentStateRequired':true
}
}
}
}); Even without persistentStateRequired, Having advanced in the drm config is giving exception(error 6001). Is it because it is not handled in the current player's version. |
Desktop Chrome does not support persistent licenses at this time. Error 6001 means the key system is not available for your content. |
I am on ubuntu (chrome)..and yes it is widevine protected. |
Means Widevine on desktop Chrome does not support persistent licenses at this time. Are you still having difficulties with |
I was able to play widevine encrypted videos with normal drm configuration on player.configure. as i said earlier, when trying to use advanced options, the video is not being played. |
I'm having trouble reproducing the issue. What happens if you add
right before https://github.com/google/shaka-player/blob/master/demo/asset_section.js#L150 ? |
Following is the part of code I tried. No error on Windows but giving error on Linux on chrome browser in both cases. |
The following works for me on Chrome Linux 50.0.2661.75 and Chrome Linux 51.0.2704.7 with or without "advanced" settings using the master branch. app.html: <!DOCTYPE html>
<html>
<head>
<script src="shaka/third_party/closure/goog/base.js"></script>
<script src="shaka/dist/deps.js"></script>
<script src="shaka/shaka-player.uncompiled.js"></script>
<script src="app.js"></script>
</head>
<body>
<video id="video" width="640" controls autoplay></video>
</body>
</html> app.js: var manifestUri = '//storage.googleapis.com/shaka-demo-assets/sintel-widevine/dash.mpd';
function initApp() {
shaka.polyfill.installAll();
shaka.Player.support().then(function(support) {
if (support.supported) {
initPlayer();
} else {
alert('Browser not supported!');
}
});
}
function initPlayer() {
shaka.log.setLevel(shaka.log.Level.V1);
var video = document.getElementById('video');
var player = new shaka.Player(video);
window.player = player;
player.addEventListener('error', onErrorEvent);
player.configure({
drm: {
servers: { 'com.widevine.alpha': '//widevine-proxy.appspot.com/proxy' },
advanced: {
'com.widevine.alpha': {
'persistentStateRequired': true
}
}
}
});
player.load(manifestUri).then(function() {
console.info('Manifest loaded!');
}).catch(onError);
}
function onErrorEvent(event) { onError(event.detail); }
function onError(error) { console.error(error); }
document.addEventListener('DOMContentLoaded', initApp); Does this work? If not, which version of Chrome are you using? What does shaka/support.html say? What log messages do you get in the console after trying the above? |
Let me try it and before that what do you conclude on persistent license on chrome desktop? Can we expect it in near time? |
Persistent licenses on desktop Chrome is a desirable feature; however, I can't give you any expectations of when it would be implemented. |
Hello the above code is working on Linux (ubuntu) as well.However If I can't get a persistent license on chrome Desktop, I doesn’t need persistent parameter there. Thanks |
Good to hear that that code works. I'll leave this issue open to track progress for offline support. |
Sorry but after reading this thread, I am not sure to understand : does the offline support for Widevine is actually implemented on Chrome Desktop ? Is it implemented in Shaka Player version 1.6 ? Is it for Shaka Player version 2.0 ? Many thanks in advance for clarifying this. |
We will implement offline support in Shaka v2, but keep in mind that offline support (as defined above) is implemented at the JavaScript level; it is separate from persistent license support, which is implemented at the browser/key-system level. |
Many thanks. If I understand well and for now, no DRM vendor support persistent license for offline usage on desktop through EME. And this has, of course, nothing to do with Shaka player. Thank you again for clarifying this. |
Widevine currently supports persistent licenses on ChromeOS. This is the bug to track Widevine persistent license support on Chrome for Android: https://bugs.chromium.org/p/chromium/issues/detail?id=493521 The great thing about JavaScript running on top of standard APIs is that if and when a DRM vendor supports persistent licenses on desktop through EME, a Shaka-based application will have access to that capability without any changes. |
This is part of the v2 equivalent of the ContentDatabase. This only manages low-level interactions with the IndexedDB and wraps all actions in Promises. This also adds an in-memory version that is used for testing. Issue #343 Change-Id: I0d296639e74c1d4cab232ce7248b03a353b38b3c
This contains two major parts: the Storage class, which manages storing, listing, and deleting the stored content, and the offline manifest parser, which loads the stored content into a manifest so the Player can play it. This does not include support for storing encrypted content. The EME sessions will not be stored properly and will fail to play. Issue #343 Change-Id: I7ecb3400391ec8100155aa972f9b09bb7ae24d9d
Issue #343 Change-Id: I66d2b57f6d7db8b0666916f951ba434337fac43a
Issue #343 Change-Id: I8c2ff4b2dd1777f28b1dd427527c83576ca8fcbc
Hello friend,
Thank & regards |
@chetanshelake, thanks for your interest in Shaka Player. Your comments are unrelated to this issue. Please file a new issue or write to our mailing list for support. |
Found many related issues to this but most of them move around shaka.media.EmeManager
http://v1-6-2.shaka-player-demo.appspot.com/docs/shaka.media.EmeManager.html which is not found in current version of shaka player.
Was this function completely removed? If so what is the alternative to have persistent license/licenses stored in shaka player in current API
The text was updated successfully, but these errors were encountered: