Unable to Play Widevine Encrypted Video in Exoplayer

1.2k Views Asked by At

I have a Widevine DRM based encrypted video. The video is encrypted using bento4 ,

mp4dash --widevine-header provider:widevine_test#content_id:2a --encryption-key 90351951686b5e1ba222439ecec1f12a:0a237b0752cbf1a827e2fecfb87479a2 video-source.mp4 Check this link for more info

Now I am trying to play this video on Android using Exoplayer and I am getting an error

android.media.MediaCodec$CryptoException: Error decrypting data: requested key has not been loaded

Error decrypting data: requested key has not been loaded

I have mpd file on my sdcard .I have tried to the simple mpd file (without encryption), it played successfully but I have tried a lot playing the encrypted video with key but I am unable to play .What is the right way to pass the key ?

Please guide me .Thanks in advance

0

There are 0 best solutions below