Exoplayer - Widevine and MPEG DASH -


i trying implement android app playing widevine-protected video. build application on exoplayer , have issue mediadrm.

android.media.mediadrm$mediadrmstateexception: failed key request: drm vendor-defined error: -2998             @ android.media.mediadrm.getkeyrequest(native method)             @ com.google.android.exoplayer.drm.streamingdrmsessionmanager.postkeyrequest(streamingdrmsessionmanager.java:370)             @ com.google.android.exoplayer.drm.streamingdrmsessionmanager.openinternal(streamingdrmsessionmanager.java:314)             @ com.google.android.exoplayer.drm.streamingdrmsessionmanager.open(streamingdrmsessionmanager.java:284)             @ com.google.android.exoplayer.mediacodectrackrenderer.maybeinitcodec(mediacodectrackrenderer.java:325)             @ com.google.android.exoplayer.mediacodectrackrenderer.oninputformatchanged(mediacodectrackrenderer.java:739)             @ com.google.android.exoplayer.mediacodectrackrenderer.readformat(mediacodectrackrenderer.java:511)             @ com.google.android.exoplayer.mediacodectrackrenderer.dosomework(mediacodectrackrenderer.java:492)             @ com.google.android.exoplayer.exoplayerimplinternal.dosomework(exoplayerimplinternal.java:417)             @ com.google.android.exoplayer.exoplayerimplinternal.handlemessage(exoplayerimplinternal.java:205) 

i have exception. found exception thrown @ line of code:

keyrequest = mediadrm.getkeyrequest(sessionid, schemedata, mimetype, mediadrm.key_type_streaming, params); 

all parameters of method set correctly, calling of method fails , thrown exception above.

do know how can solve it? help.

i solved it. problem device, using testing. device samsung galaxy s4 android 5.0.1. when tried code on different device (nexus 5, samsung tablet, etc.), worked fine. there bug or missing support of widevine modular in galaxy s4.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -