Media Player playing DRM content
This topic describes how to play DRM-protected content through Encrypted Media Extension (EME) API of W3C specification. DRM-protected content is supported only for adaptive streaming contents (HLS and DASH).
Note: The DRM-protected content playback is supported on the Fire TV Stick and on the Vega Virtual Device (DRM L3 only) for Mac M-series machines. If you try to run DRM content on the Vega Virtual Device on other machine configurations, the following error is displayed in the logs.
"Shaka Error DRM.FAILED_TO_CREATE_CDM"
For information about playing content, see Play adaptive content (HLS/DASH) with Shaka Player.
Prerequisites
Set up your app to use the WC3 Media Player. For more information, see Media Player Setup.
To integrate with the Fire TV device:
- For DRM protected content, set
secure
totrue
, setdrm_scheme
tocom.microsoft.playready:
orcom.widevine.alpha
schemes and setdrm_license_uri
such that it points to license servers.const content = { secure: "true", // true : Use Secure Video Buffers. false: Use Unsecure Video Buffers. uri: "https://storage.googleapis.com/wvmedia/cenc/h264/tears/tears.mpd", drm_scheme: "com.widevine.alpha", // com.microsoft.playready, com.widevine.alpha drm_license_uri: "https://proxy.uat.widevine.com/proxy?provider=widevine_test", // DRM License acquisition server URL : needed only if the content is DRM protected },
- Open your manifest.toml file and add the following permissions.
[wants] [[wants.service]] id = "com.amazon.drm.key" # Required for DRM video playback [[wants.service]] id = "com.amazon.drm.crypto" # Required for DRM video playback [[needs.privilege]] id = "com.amazon.privilege.security.file-sharing" # Required for DRM video playback
Known issues
DRM playback and fast refresh
There is a known issue with fast refresh and DRM playback. When testing DRM playback, disable fast refresh.
Related topics
Last updated: Sep 30, 2025