How do use PlayReady on Fire TV web platform or WebView?

243 Views Asked by At

According to Amazon's documentation:

Q: Can web apps for Amazon Fire TV support digital rights management (DRM) for media playback?

The Web App Platform supports DRM for Widevine and PlayReady. For details about DRM support for native FireTV applications, see the DRM section of the Specifications for Fire TV Devices page.

However, when calling navigator.requestMediaKeySystemAccess from a web app (via Web App Tester) or a WebView (via Cordova), the request only succeeds for WideVine.

Success:

navigator.requestMediaKeySystemAccess('com.widevine.alpha', [{
    audioCapabilities: [
        {
            contentType: 'audio/mp4; codecs="mp4a.40.2"',
            robustness: ''
        }
    ],
    videoCapabilities: [
        {
            contentType: 'video/mp4; codecs="avc1.64002A"',
            robustness: ''
        }
    ]
}]).then(console.log)

Failure:

navigator.requestMediaKeySystemAccess('com.microsoft.playready', [{
    audioCapabilities: [
        {
            contentType: 'audio/mp4; codecs="mp4a.40.2"',
            robustness: ''
        }
    ],
    videoCapabilities: [
        {
            contentType: 'video/mp4; codecs="avc1.64002A"',
            robustness: ''
        }
    ]
}]).then(console.log)

The error's name is NotSupportedError, which means (according to MDN) PlayReady is not supported, despite Amazon's documentation stating that it is.

1

There are 1 best solutions below

0
On

PlayReady isn't supported on Fire TV WebViews. Only Widevine is supported.