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

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

Closed
siavashabdoli opened this issue Oct 18, 2015 · 7 comments
Assignees

Comments

@siavashabdoli
Copy link

siavashabdoli commented Oct 18, 2015

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

@ojw28 ojw28 added the question label Oct 18, 2015
@seventhmoon
Copy link

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.

@ojw28 ojw28 added enhancement and removed question labels Sep 9, 2016
@ojw28 ojw28 changed the title Offline DRM Provide offline DRM support (without need to implement your own DrmSessionManager) Sep 9, 2016
@ojw28
Copy link
Contributor

ojw28 commented Sep 9, 2016

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

@ram992
Copy link

ram992 commented Oct 19, 2016

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

@erdemguven
Copy link
Contributor

This has been implemented in the change 9d5c750

@chandrasekhararao
Copy link

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.

@seventhmoon
Copy link

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.

@chandrasekhararao
Copy link

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

@google google locked and limited conversation to collaborators Jun 28, 2017
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