Closed codestrap97a closed 4 months ago
At a guess I would say this is because your key is not base64url encoded as required by EME. Checking the browser code, it appears Firefox explicitly forgives this when parsing the key object, but Chromium is more strict, requiring base64url alphabet only.
Replace +
with -
, and /
with _
, and retry.
At a guess I would say this is because your key is not base64url encoded as required by EME. Checking the browser code, it appears Firefox explicitly forgives this when parsing the key object, but Chromium is more strict, requiring base64url alphabet only.
Replace
+
with-
, and/
with_
, and retry.
it works! I appreciate your assistance! you are right chromium uses strict base64 url!
Thanks for your help @davemevans
Environment
I am using clearkey encryption method to encrypt a sample clip for checking dashjs player functionality! I used Bento4 tool to dash and encrypt the clip with a key, everything is fine on Firefox desktop browser. the encrypted clip is sent to the browser and decrypted and played thoroughly without any issues. But on Chrome/Brave/Edge desktop and android browser devices, although the whole dash segments and mpd file is downloaded by browser but the clip is not played on such platforms/browsers!
The console error in chrome/ Brave browser:
The client js code is shown below: