as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

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.

Copied to clipboard.

"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:

  1. For DRM protected content, set secure to true, set drm_scheme to com.microsoft.playready: or com.widevine.alpha schemes and set drm_license_uri such that it points to license servers.

    Copied to clipboard.

    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
    },
    
  2. Open your manifest.toml file and add the following permissions.

    Copied to clipboard.

    [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.

Media Player API


Last updated: Sep 30, 2025