Check HDCP version for key system in browser.
npm i --save-dev hdcp
import { checkHdcpVersion, checkAllHdcpVersions } from 'hdcp';
const status = await checkHdcpVersion('com.widevine.alpha', '1.0');
console.log('checkHdcpVersion: ', status);
const result = await checkAllHdcpVersions('com.microsoft.playready.recommendation');
console.log('checkAllHdcpVersions: ', result);