-
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
Shaka Player Tutorial DRM COntent Fails to Play #928
Comments
If you look up the docs for error code 6001, you'll see this:
This last point is probably the one affecting you. In the nightly build, we have added a section to the DRM config tutorial called "EME and http URLs", which says this:
I think this should be called out more explicitly at the top of each DRM-related tutorial. Would this help? |
- Move the note about EME and HTTP to the top of the DRM config tutorial - Reference this note in both the server authentication and license wrapping tutorials Closes #928 Change-Id: Ibb47053c6ce5db1e1b120e0bb810c1f9f9069a82
I moved some things around in the docs to make this more clear. The changes to the docs have been cherry-picked and will be released in v2.1.5. Please let me know if this helps. |
Thanks for your help. With the references on what you sent I was able to solve my problems.
Best Regards
Neil Hollingum
|
Glad we could help! |
Thanks for your help – I have found a solution to my problems.
Best Regards
Neil Hollingum
|
I have read the FAQs and they do not help.
I am trying to run the Shaka player DRM tutorials with version of Shaka from Git Hub loaded on 7th July.
I am running on Chrome Browser and have tried on Windows 7 and Windows 10 with same results.
My Java Script as per tutorial for License Server Authentication:-
// myapp3.js
var manifestUri = '//storage.googleapis.com/shaka-demo-assets/sintel-widevine/dash.mpd';
var licenseServer = '//cwip-shaka-proxy.appspot.com/no_auth';
function initApp() {
// Install built-in polyfills to patch browser incompatibilities.
shaka.polyfill.installAll();
// Check to see if the browser supports the basic APIs Shaka needs.
if (shaka.Player.isBrowserSupported()) {
// Everything looks good!
initPlayer();
} else {
// This browser does not have the minimum set of APIs we need.
console.error('Browser not supported!');
}
}
function initPlayer() {
// Create a Player instance.
var video = document.getElementById('video');
var player = new shaka.Player(video);
// Attach player to the window to make it easy to access in the JS console.
window.player = player;
// Listen for error events.
player.addEventListener('error', onErrorEvent);
});
});
// Try to load a manifest.
// This is an asynchronous process.
player.load(manifestUri).then(function() {
// This runs if the asynchronous load is successful.
console.log('The video has now been loaded!');
}).catch(onError); // onError is executed if the asynchronous load fails.
}
function onErrorEvent(event) {
// Extract the shaka.util.Error object from the event.
onError(event.detail);
}
function onError(error) {
// Log the error.
console.error('Error code', error.code, 'object', error);
}
Ran the Web Page:-
<script src="third_party/closure/goog/base.js"></script> <script src="dist/deps.js"></script> <script src="shaka-player.uncompiled.js"></script>I expected the vidoe to play but got error code 6001
"Error code 6001 object shaka.util.Error {severity: 2, category: 6, code: 6001, data: Array(0), message: "Shaka Error DRM.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE ()"…}
onError @ myapp3.js:61"
Can Anybody help ?
The text was updated successfully, but these errors were encountered: