Closed singhcool closed 4 years ago
Did you check the sample? https://reference.dashif.org/dash.js/nightly/samples/drm/clearkey.html
@dsilhavy Yes I have checked with your samples. But our mpd file different from your mpd file. But our mpd file working fine with shaka. Dash player support any specific type of clear key encryption Can you provide any encryption steps with clear key. I struggled more than two days. Please help to rectify this issue
If you host your content (MPD and segments) we might be able to look into this.
Please also keep in mind that you need to host the player on an https server if you are testing outside of localhost. Otherwise EME is disabled
@dsilhavy Please find the below source http://www.mediafire.com/folder/n4qy9s36xvq7o/31313-fmp4 Clear Key : 87237D20A19F58A740C05684E699B4AA
Clear Key ID: A16E402B9056E371F36D348AA62BB749
Please host the content on a webserver or upload as a zip
@dsilhavy Issue happened due to clearkey encoding method. I converted key into base64url encode. Then issue automatically fixed Thanks for your response @dsilhavy
const key = a4eb03f8e0928d2e55e37c2fa6afb1ce
const keyId = 12fa7db6feed6dc1c301fc0e66e35fb3
const keyEncoded = Buffer.from(key, 'hex').toString('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/[==]+$/, '');
const keyIdEncoded = Buffer.from(keyId, 'hex').toString('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/[==]+$/, '');
Clear key DRM Protection not working in Dash Jsw but work in Shaka Player
I have encrypted the video using clearkey not playing in dash js player but the mpd file plays well in shaka player and Jsw player
Please refer to the below Mpd file content. Please help advance thanks