Skip to content
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 playlists of offline DRM protected content #5211

Closed
vinayjoglekar opened this issue Dec 7, 2018 · 5 comments
Closed

Support playlists of offline DRM protected content #5211

vinayjoglekar opened this issue Dec 7, 2018 · 5 comments
Assignees

Comments

@vinayjoglekar
Copy link

Issue description
Does exoplayer have support to play offline DRM content using ConcatenatingMediaSource? Currently I am able to play single media offline which is DRM protected using :
drmSessionManager?.setMode(DefaultDrmSessionManager.MODE_PLAYBACK, license.keySetIdBytes)

Version of ExoPlayer being used
2.9.1

@vinayjoglekar vinayjoglekar changed the title Offline DRM protected playlist Offline DRM protected content playlist Dec 7, 2018
@ojw28
Copy link
Contributor

ojw28 commented Dec 9, 2018

I don't think we have a great solution for this currently. As you note, you can only restore one keySetId into the DrmSessionManager.

@ojw28 ojw28 assigned AquilesCanta and unassigned erdemguven Dec 9, 2018
@ojw28 ojw28 changed the title Offline DRM protected content playlist Support playlists of offline DRM protected content Dec 9, 2018
@vinay-altbalaji
Copy link

Thanks, @ojw28 . Is it going be to a part of any of the upcoming releases?

@avecost
Copy link

avecost commented Jul 31, 2019

Hello @vinayjoglekar can you share on how you implemented the Offline Playback that is protected content.

TIA

@vinayjoglekar
Copy link
Author

@avecost you need to cache license key(s) of the content at when you download the actual content. At the time of playback of this offline content instead of using MediaDrmCallback, use that license like this
drmSessionManager?.setMode(DefaultDrmSessionManager.MODE_PLAYBACK, license.keySetIdBytes)

@ojw28
Copy link
Contributor

ojw28 commented Aug 2, 2019

Marking as a duplicate of #2394, since what's being done for that issue will also solve this one.

@ojw28 ojw28 closed this as completed Aug 2, 2019
@google google locked and limited conversation to collaborators Oct 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants