ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Support playlists of offline DRM protected content

Open vinayjoglekar opened this issue 7 years ago • 5 comments

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 avatar Dec 07 '18 06:12 vinayjoglekar

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 avatar Dec 09 '18 19:12 ojw28

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

vinay-altbalaji avatar Dec 12 '18 12:12 vinay-altbalaji

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

TIA

avecost avatar Jul 31 '19 07:07 avecost

@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)

vinayjoglekar avatar Jul 31 '19 10:07 vinayjoglekar

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

ojw28 avatar Aug 02 '19 15:08 ojw28