0

I'm trying to proxy a Widevine license server using my API, I have made a easy to edit example which is basically a Shaka-player and an API which (should) proxy the license server.

I have this license server which for this example is a sample from shaka-player : https://cwip-shaka-proxy.appspot.com/no_auth
My API should then do a POST request on the above license server and returns the response to shaka-player to be able to play the video, basically it should acts as a proxy endpoint.

Unfortunately, I get this : INVALID_LICENSE_CHALLENGE, notice that changing the DRM license server from player.configure() of course make it works

I may be wrong but I think that the challenge should be the buffer of the request body converted to base64 that's why I tried to do :

const data = Buffer.from(JSON.stringify(req.body)).toString('base64');

You can find source code here to make it easier to understand

Thanks!

NB: I know there is an exact same topic on that but it didn't get any answer so far.

Forium
  • 1
  • 2

0 Answers0