ExoPlayer icon indicating copy to clipboard operation
ExoPlayer copied to clipboard

Support offlining DRM keys

Open ram992 opened this issue 10 years ago • 2 comments

Hello, I have implemented offline DRM management, by creating an offlineDrm SessionManager from streamingDrm SessionManager. I am sorting keys and then restoring them with mediaDrm.restoreKeys

But my implementation works fine if I am doing it with single file at a time.

Like creating DRM session fetching keys, storing them. Then in the offline mode I will just pick the keys And start playback.

My question is is there any way to download the keys store keysetID for them before downloading the actual video and storing all in a single folder.

I have tried it but every time I try to play offline the player give me a DRM session exception

Can you tell me if there is any need to create player instance when downloading keys.

ram992 avatar Nov 22 '16 17:11 ram992

There's no real need to create a player to obtain offline DRM keys, but the implementation for actually doing this isn't trivial. It's something we intend to support in the future. Marking this as an enhancement.

ojw28 avatar Nov 24 '16 18:11 ojw28

Actually, this is already tracked by #876. Closing this one.

ojw28 avatar Nov 24 '16 18:11 ojw28