AnsweredAssumed Answered

Widevine Integration Difficulties

Question asked by Michael Robbeloth on May 28, 2015
Latest reply on Jul 8, 2015 by gusarambula
Branched to a new discussion

Re-posting here per Kevin Wong request

 

BSP: JB4.3_1.1.0-ga derived

Proper License Obtained from Google/Widevine: Yes

Widevine download received from Freescale: Yes and integrated into local AOSP builds

 

To Whom it May Concern:

 

I have went through all the instructions to install the Widevine packages from Freescale and integrating a keybox from Google on one of my company's development units. However, once everything is in place, the Widevine test app crashes as it is not able to acquire rights to play the media. I added some extra code to keep the app from crashing and notice that calls to acquire, show, or release rights would result in an error -2000 or UNKNOWN error. Reviewing the logcat reveals that the plugin list is empty. After this, I tried installing the DRM plugin libs not only under /vendor but also in /system/lib/drm/plugins/native per Google’s instructions on https://source.android.com/devices/drm.html#build. This didn’t help me either.

 

Interesting portions from logcat:

 

D/WVM Sample Player( 3570): Click Asset path: widevine://storage.googleapis.com/wvmedia/tears_high_1080p_4br_tp.wvm

D/WVM Sample Player( 3570): WVPortalKey=OEM

E/WVM Sample Player( 3570): PDi No response object -- A serious error occurred in securing the DRM information

D/WVM Sample Player( 3570): Device is provisioined

D/WVM Sample Player( 3570): plugin:

D/WVM Sample Player( 3570): Trying to acquire rights using assetUri=widevine://storage.googleapis.com/wvmedia/tears_high_1080p_4br_tp.wvm

D/WVM Sample Player( 3570): acquireRights = -2000

D/WVM Sample Player( 3570): showRights

D/WVM Sample Player( 3570): No Rights

D/WVM Sample Player( 3570): No Contraints

 

One item I could not figure out was if what to use for WVPortalKey as there is a separate device id field to use.

 

I/ActivityManager( 2582): START u0 {cmp=com.widevine.demo/.VideoPlayerView (has extras)} from pid 3570

D/VideoPlayerView( 3570): Asset Uri: widevine://storage.googleapis.com/wvmedia/tears_high_1080p_4br_tp.wvm

D/VideoPlayerView( 3570): Drm Server: https://wstfcps005.shibboleth.tv/widevine/cypherpc/cgi-bin/GetEMMs.cgi

D/VideoPlayerView( 3570): Device Id: REDACTED

D/VideoPlayerView( 3570): Portal Name: OEM

E/VideoPlayerView( 3570): Handle not available for updating logs with empty message

E/BufferQueue( 2244): [com.widevine.demo/com.widevine.demo.VideoPlayerView] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

I/ActivityManager( 2582): Displayed com.widevine.demo/.VideoPlayerView: +342ms

D/VideoPlayerView( 3570): Click play (start playback).

D/VideoPlayerView( 3570): Playback start.

D/VideoPlayerView( 3570): Unable to play media

E/BufferQueue( 2244): [com.widevine.demo/com.widevine.demo.VideoPlayerView] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

D/VideoPlayerView( 3570): onCompletion.

D/VideoPlayerView( 3570): Stop Playback.

D/VideoPlayerView( 3570): Click rights

D/VideoPlayerView( 3570): Click check rights

D/VideoPlayerView( 3570): Click get constraints

D/VideoPlayerView( 3570): Click play (start playback).

D/VideoPlayerView( 3570): Playback start.

D/VideoPlayerView( 3570): Unable to play media

E/BufferQueue( 2244): [com.widevine.demo/com.widevine.demo.VideoPlayerView] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

D/VideoPlayerView( 3570): onCompletion.

D/VideoPlayerView( 3570): Stop Playback.

V/VideoPlayerView( 3570): ------------------- onPause ----------------

D/VideoPlayerView( 3570): onStop.

D/VideoPlayerView( 3570): onStop.

 

D/MediaPlayer( 3570): Couldn't open file on client side, trying server side

E/MediaPlayer( 3570): error (1, -1010)

E/MediaPlayer( 3570): Error (1,-1010)

E/MediaPlayer( 3570): stop called in state 0

E/MediaPlayer( 3570): error (-38, 0)

W/MediaPlayer( 3570): mediaplayer went away with unhandled events

D/MediaPlayer( 3570): Couldn't open file on client side, trying server side

E/MediaPlayer( 3570): error (1, -1010)

E/MediaPlayer( 3570): Error (1,-1010)

E/MediaPlayer( 3570): stop called in state 0

E/MediaPlayer( 3570): error (-38, 0)

W/MediaPlayer( 3570): mediaplayer went away with unhandled events

 

I/AwesomePlayer( 2247): setDataSource_l(URL suppressed)

I/AwesomePlayer( 2247): setDataSource_l(URL suppressed)

 

If anyone know what I am doing wrong or has suggestions on debugging the issues, I would appreciate it. Thank you.

 

Michael Robbeloth

Outcomes