Chrome-android doesn't play encrypted content

322 views
Skip to first unread message

yair.ans

unread,
Jun 5, 2016, 11:03:46 AM6/5/16
to Shaka Player Users
Hi,

I try to play with Shaka Player v2.0 demo the following encrypted custom asset: 



This plays well on Chrome browser, 
But when I run it on Chrome-android (Nexus 6) I get the following error.

  1. category:6
  2. code:6011
  3. data:Array[0]
  4. message:"Shaka Error DRM.WRONG_KEYS ()"
  5. stack:"Error: Shaka Error DRM.WRONG_KEYS ()↵ at new shaka.util.Error (http://shaka-player-demo.appspot.com/lib/util/error.js:77:13)↵ at shaka.media.DrmEngine.onWaitingForKey_ (http://shaka-player-demo.appspot.com/lib/media/drm_engine.js:652:17)"
  6. __proto__:Object

Do you have any idea?

Thanks for your help 

Yair



Yair Ans

unread,
Jun 16, 2016, 9:38:47 AM6/16/16
to Shaka Player Users

Joey Parrish

unread,
Jun 29, 2016, 1:10:07 PM6/29/16
to Yair Ans, Shaka Player Users
Hi Yair,

I'm unable to access your license server at either URL.  I'm getting an HTTP 403 error in response to the license request.

Do we need another updated license URL perhaps?

Thanks,
Joey


On Thu, Jun 16, 2016 at 6:38 AM, Yair Ans <yai...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-us...@googlegroups.com.
To post to this group, send email to shaka-pla...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-player-users/bb814f9b-94c8-43a8-b19d-50147a48d079%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Yair Ans

unread,
Jun 30, 2016, 3:49:37 AM6/30/16
to Shaka Player Users

Joey Parrish

unread,
Jun 30, 2016, 12:24:37 PM6/30/16
to Yair Ans, Shaka Player Users
Okay, I can confirm.  I'm getting the same on my Android device.

I will file a bug on github to track progress.

How often will we need updated license server URLs to continue working on this problem?



Yair

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-us...@googlegroups.com.
To post to this group, send email to shaka-pla...@googlegroups.com.

Joey Parrish

unread,
Jun 30, 2016, 2:27:11 PM6/30/16
to Yair Ans, Shaka Player Users
I am getting the same key ID in the license on both desktop and Android, but it seems Android is failing to decrypt for some reason, resulting in a 'waitingforkey' event, which triggers the WRONG_KEYS error.  I cannot reproduce with my own encrypted content, but I'm not sure why yours is special.

Still investigating, with help from the Android team.  So far, it does not appear to be a bug in Shaka, though.

Joey Parrish

unread,
Jun 30, 2016, 6:08:42 PM6/30/16
to Yair Ans, Shaka Player Users
It looks like your license policies are a bit odd.  According to my colleague, your rental and playback durations are set to 0, which means unlimited, but your license duration is set to a timestamp instead of the length of time you want the license to last before expiring.

It is possible that such a large duration (46 years) is being rejected by the hardware security of the Android device.  This would explain why we don't see the same failure on desktop Chrome, which uses a software CDM.

Please try setting the license duration to something reasonable like 1 hour or 1 day and see if that solves the problem for you.

Yair Ans

unread,
Jul 4, 2016, 5:24:23 AM7/4/16
to Shaka Player Users
Joey,

You are right, this wrong configuration is the problem,
We changed it and now it works fine.

Thanks a lot for your investigation and help,

Yair
Reply all
Reply to author
Forward
0 new messages