I have to develop a function that decrypt a DRM HLS content using video.js lib. I've retrieved about this issue and I found it(https://learn.microsoft.com/ko-kr/azure/media-services/previous/media-services-protect-hls-with-fairplay) So I've used playready as like as a below
const setPlayerForDashHLS = (src, type, key, licenseURL) => {
const customData = DRM_TYPE + SITE_ID + key;
player.src({
src: src,
type: type,
keySystems: {
'com.microsoft.playready': {
url: licenseURL,
licenseHeaders: {
'pallycon-customdata': customData
}
}
}
});
}
but It's not working to play DRM HLS video and not print anything about an error log. I want to know that how to play it.