Bug 1908340 Comment 13 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Nathan, 

From your [profile](https://share.firefox.dev/3Y1akuw) (with the pref ON), the HDCP status is `Output_restricted`, which should be the reason why Amazon stops serving HD. Could you help me paste following code to Chrome's (or Edge's) [web console](https://developer.chrome.com/docs/devtools/open) (Ctrl + Shift + J)? I would like to see whether the HDCP status on other browsers is `usable`. Thanks!

```
(async function requestMediaKeys() {
  const config = {
    initDataTypes: ['cenc'],
    audioCapabilities: [
      { contentType: 'audio/mp4; codecs="mp4a.40.2"' },
    ],
    videoCapabilities: [
      { contentType: 'video/mp4; codecs="avc1.4D401E"' },
    ],
    distinctiveIdentifier: 'optional',
    persistentState: 'optional',
    sessionTypes: ['temporary']
  };
  try {
    console.log('Requesting MediaKeySystemAcess');
    const mediaKeySystemAccess = await navigator.requestMediaKeySystemAccess('com.widevine.alpha', [config]);

    console.log('Creating a MediaKey');
    const mediaKey = await mediaKeySystemAccess.createMediaKeys();

    console.log('MediaKey created successfully');

    const policyStatusHDCP14 = await mediaKey.getStatusForPolicy({ minHdcpVersion: '1.4' });
    console.log('HDCP 1.4 policy status:', policyStatusHDCP14);

    const policyStatusHDCP22 = await mediaKey.getStatusForPolicy({ minHdcpVersion: '2.2' });
    console.log('HDCP 2.2 policy status:', policyStatusHDCP22);
  } catch (error) {
    console.error('Error occurred:', error);
  }
})();
```
Hello, Nathan, 

From your [profile](https://share.firefox.dev/3Y1akuw) (with the pref ON), the HDCP status is `Output_restricted`, which should be the reason why Amazon stops serving HD. Could you help me paste following code to Chrome's (or Edge's) [web console](https://developer.chrome.com/docs/devtools/open) (Ctrl + Shift + J)? I would like to see whether the HDCP status on other browsers is `usable`. Thanks!

```
(async function requestMediaKeys() {
  const config = {
    initDataTypes: ['cenc'],
    audioCapabilities: [
      { contentType: 'audio/mp4; codecs="mp4a.40.2"' },
    ],
    videoCapabilities: [
      { contentType: 'video/mp4; codecs="avc1.4D401E"' },
    ],
    distinctiveIdentifier: 'optional',
    persistentState: 'optional',
    sessionTypes: ['temporary']
  };
  try {
    console.log('Requesting MediaKeySystemAcess');
    const mediaKeySystemAccess = await navigator.requestMediaKeySystemAccess('com.widevine.alpha', [config]);

    console.log('Creating a MediaKey');
    const mediaKey = await mediaKeySystemAccess.createMediaKeys();

    console.log('MediaKey created successfully');

    const policyStatusHDCP14 = await mediaKey.getStatusForPolicy({ minHdcpVersion: '1.4' });
    console.log('HDCP 1.4 policy status:', policyStatusHDCP14);

    const policyStatusHDCP22 = await mediaKey.getStatusForPolicy({ minHdcpVersion: '2.2' });
    console.log('HDCP 2.2 policy status:', policyStatusHDCP22);
  } catch (error) {
    console.error('Error occurred:', error);
  }
})();
```

Back to Bug 1908340 Comment 13