# PlayReady encryption not working with Shaka player

**URL:** <https://community.wowza.com/t/playready-encryption-not-working-with-shaka-player/48814>\
**Category:** Wowza Streaming Engine\
**Tags:** encoder\
**Created:** [May 23, 2017, 4:08pm UTC](https://community.wowza.com/t/playready-encryption-not-working-with-shaka-player/48814 "2017-05-23T16:08:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goncalo\_Rodrigues](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@Goncalo\_Rodrigues](https://community.wowza.com/u/Goncalo_Rodrigues)\
**Post date:** [May 23, 2017, 4:08pm UTC](https://community.wowza.com/t/playready-encryption-not-working-with-shaka-player/48814/1 "2017-05-23T16:08:28Z")

</div>

Encrypting with PlayReady makes Shaka player gives the folowing error:

```auto
shaka.util.Error { "category": 3, "code": 3016, "data": [5, "8004110e"] }

```

Shaka documentation says it’s VIDEO\_ERROR. Some more investigation took me to think it’s about the key is not valid. I’m using the same key as Widevine and Widevine play works good.

I’m using onHTTPMPEGDashEncryptionKeyVODChunk function, but with the key file the error is the same.

I also tried other players and the video in PlayReady also don’t work.

Can someone help me?

Some links:

- [https://shaka-player-demo.appspot.com/docs/api/shaka.util.Error.html](https://shaka-player-demo.appspot.com/docs/api/shaka.util.Error.html)

- [https://msdn.microsoft.com/en-us/library/windows/desktop/ff801091(v=vs.85).aspx](https://msdn.microsoft.com/en-us/library/windows/desktop/ff801091%28v=vs.85%29.aspx)

---

<div class="post-metadata">

**Author:** ![Goncalo\_Rodrigues](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@Goncalo\_Rodrigues](https://community.wowza.com/u/Goncalo_Rodrigues)\
**Post date:** [May 24, 2017, 1:30pm UTC](https://community.wowza.com/t/playready-encryption-not-working-with-shaka-player/48814/2 "2017-05-24T13:30:58Z")

</div>

I found that in the manifest of the video served with Wowza the tag don’t have a reference to the KID (and have instead a cenc:pssh tag inside):

```auto
<ContentProtection schemeIdUri="urn:uuid:9A04F079-9840-4286-AB92-E65BE0885F95" value="Microsoft PlayReady">

```

And in a manifest of a video that works it has that reference to the KID (and don’t have a cenc:pssh tag inside):

```auto
<ContentProtection schemeIdUri="urn:uuid:9A04F079-9840-4286-AB92-E65BE0885F95" value="2.0" cenc:default_KID="A9F77731-42E0-445B-9695-27B504EDFC7B">

```

Does it has something related to this?

Can someone help me?
