Does widevinecdm support that video and audio being encrypted by the same key?

915 views
Skip to first unread message

wangqiang xie

unread,
Apr 11, 2016, 1:51:43 AM4/11/16
to Shaka Player Users
I used edash packager to encrypt video(sd only) and audio with the same keyid/key using widevine drm.
There isn't any issue when streaming this dash content from http server to android exoplayer.
It used to work before when I try it with shaka player in chrome on MAC/Windows in chrome version Version 49.0.2623.112 (64-bit)
I got an error like:
s…a.u…l.Error {category: 6, code: 6008, data: Array[1], message: "Shaka Error DRM.LICENSE_RESPONSE_REJECTED (Rejected with system code (29))", stack: "Error: Shaka Error DRM.LICENSE_RESPONSE_REJECTED (…://127.0.0.1:8000/lib/media/drm_engine.js:702:23)"}
category:6
code:6008
data:Array[1]
    0:"Rejected with system code (29)"
    length:1
    __proto__:Array[0]
message:"Shaka Error DRM.LICENSE_RESPONSE_REJECTED (Rejected with system code (29))"
stack:"Error: Shaka Error DRM.LICENSE_RESPONSE_REJECTED (Rejected with system code (29)) at new shaka.util.Error (http://127.0.0.1:8000/lib/util/error.js:77:13) at .<anonymous> (http://127.0.0.1:8000/lib/media/drm_engine.js:702:23)"

I have checked the license proxy, the proxy successfully got the license from google test license server and forward it to shaka player.
Shaka player also absolutely received the license and rejected the license response.

If I used different keyid/key for encrypting audio and video, the shaka player could streaming the content under the same test environment.
In the widevine specification, it doesn't forbidden using the same key for audio and video.
I couldn't understand why the widevinecdm will like to reject this kind of  license. 

Because we would like to support multiple drm at the same time.
So could any confirm if this behaviour the expectation or a bug.

The test contents is available from

Joey Parrish

unread,
Apr 15, 2016, 12:24:53 AM4/15/16
to wangqiang xie, Shaka Player Users
That system code comes from the Chrome CDM, which differs somewhat from the Android CDM.  I believe that system code means that your proxy sent the same key ID twice.

For security reasons, you should always use different keys for audio and video.  Technically, however, you can use the same key for audio and video.  The error is caused by the same key ID appearing in the license twice.  If you deduplicate the keys in your license proxy, that should fix it.

Please let us know whether or not that works for you.

Thanks,
Joey


--
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/bfe468b8-f501-486f-827a-70998b3b5f3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

wangqiang xie

unread,
Apr 15, 2016, 1:35:24 AM4/15/16
to Shaka Player Users, xiewan...@gmail.com
Thanks for your reply.
I've confirmed that your solution is working.
It's not a good idea to use the same key for audio and video.
Just because there are some limitation from other DRM.
We will try to figure out some other ways to use different key for audio and video.

Thanks
Sean
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.

Joey Parrish

unread,
Apr 15, 2016, 1:41:05 AM4/15/16
to wangqiang xie, Shaka Player Users
Glad to know it's working now.  Thanks for confirming the fix, Sean!


To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-us...@googlegroups.com.

--
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.
Reply all
Reply to author
Forward
0 new messages