-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Offline license drm + ABR for streaming content "Crypto key not available" #8350
Comments
I also have the same problem when using abr + offline license doesn't work properly, exoplayer always tell me error "crypto key not available" |
@ojw28 i try sample offline license from exoplayer for play drm source + abr but same problem exo tell me error "crypto key not available" |
Please provide full reproduction steps that allow us to reproduce and understand the problem. From the current description it's a bit unclear what kind of media you use, what kind of license, how you store and use the offline licenses and what "using abr" means in this context. |
@tonihei thanks your feedback
|
@ojw28 Could you take a look? I'm not sure how offline licenses work exactly and what needs to be done to make them work correctly for adaptive playback. |
Please read our DRM documentation. In particular note:
This means that your license server must be configured to behave as in case 1, where all of the keys needed for playback are returned in the license request, rather than just the key being requested. Note that if your license server is configured as required, you will not need to call |
@ojw28 Even if we use 1 license for all playback, we still have to supply multi-key? |
If you're asking whether you need to call If you're asking something else, then I'm afraid I don't understand the question. |
@ojw28 Thank you for your response, we have successfuly download this one key from license server, store it and use it to play each stream individually using direct stream url but when we try to play the main url, each time the stream change quality exoplayer seem not supply the key we store previously and give "Crypto key not available" is it required for exoplayer that our license server should return multiple key for abr with stored key, even if it same key for each quality? or is there anyway we can manually create the multiple key structure from one key that we get before we store it for offline use? |
No, this is not required. It sounds like there's something wrong with the way the content is prepared, but it's unclear what that is. Without working test content (including an accessible license server), I don't think there's much we can do to assist. Please provide some if you'd like us to investigate further. Thanks! |
It doesn't look like you're using the same key for all of the streams. Looking at the channel 1150 links provided, the 480p and 720p streams are not using the same key. To see which keys are used in the content for each buffer being queued to the decoder, you can add logging here like:
The keys I see in your content are:
Hence when you put both of them into the manifest, you have multi-key content, and my previous response still applies. I'm going to go ahead and close this, since I don't think there's an ExoPlayer issue here. |
@ojw28 Thank you for your support, we will retrace how we prepared our sources. |
I've tried to use offline license for drm without abr and it worked, but when i try offline license to play drm source with abr, exo always tells me error "Crypto key not available", meanwhile when i try online license to play drm source with abr or without abr Player runs normally. is there anything else you need to do to play drm + abr source on an offline license?
I hope to help my problem.
Thank you
The text was updated successfully, but these errors were encountered: