ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Provide offline DRM support (without need to implement your own DrmSessionManager)

Open siavashabdoli opened this issue 11 years ago • 7 comments

Hi

Can I Download a video with DRM protection on sdcard and play it only with my my app that using exoplayer. I don't want user can copy my video to another device and I want save it on SD card because of size and number of videos that user may download

siavashabdoli avatar Oct 18 '15 11:10 siavashabdoli

Exoplayer currently support the following

  1. Offline playback
  2. store the DRM key securely by MediaDrm

However, it require your own implementation of DrmSessionManager on how to store the keySetId of each video content.

seventhmoon avatar Nov 30 '15 04:11 seventhmoon

@seventhmoon is correct - it's fairly straightforward to implement your own DrmSessionManager. That said, we should probably add support directly to the library. We should also provide a component to assist in requesting the offline keys.

ojw28 avatar Sep 09 '16 20:09 ojw28

Can I get an Example Class on how to implement our Own DrmSessionManager

ram992 avatar Oct 19 '16 12:10 ram992

This has been implemented in the change 9d5c750

erdemguven avatar Jan 14 '17 21:01 erdemguven

Dear All,

I am trying to do offline DRM videos playing in android. I have configured in gradle like: compile 'com.google.android.exoplayer:exoplayer:r2.0.3' I have tried with new version but some unknown exception are coming. Can you please give full sample code for the above version? How to gather keys and how to store and retrieve those keys using StreamingDrmSessionManager...? Please explain.

chandrasekhararao avatar Mar 23 '17 06:03 chandrasekhararao

I think how to store the key for offline is already mentioned in Android DRM Framework. You do 95% the same as streaming playback. Just one more step on telling the OS to store the key.

seventhmoon avatar Mar 23 '17 06:03 seventhmoon

Thank you @seventhmoon . Can please share sample code for that...i am new to this android.

chandrasekhararao avatar Mar 23 '17 07:03 chandrasekhararao