Provide offline DRM support (without need to implement your own DrmSessionManager)
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
Exoplayer currently support the following
- Offline playback
- 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 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.
Can I get an Example Class on how to implement our Own DrmSessionManager
This has been implemented in the change 9d5c750
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.
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.
Thank you @seventhmoon . Can please share sample code for that...i am new to this android.