logo

How to play a Clear Key protected stream in THEOplayer?

This article provides a simple example of how to use Clear Key with THEOplayer.

Usually, DRM systems require you to specify a licenseAcquisitionURL and additional optional data (e.g.: certificate, credentials, headers). Clear Key does not need a DRM provider: you can provide the key(s) directly to the player (hence "clear" key) through the keys property in its LicenseAcquisitionDescription (in fact, this property is only available for Clear Key). Alternatively, you can have the player fetch the keys from a "license server" (licenseAcquisitionURL), but really that just returns a JSON object containing the same keys. Please check also our related API documentation.

Table of Contents

SDKs

Web SDK Android SDK iOS SDK tvOS SDK Android TV SDK Chromecast SDK
Yes Yes Yes Yes Yes Yes

How to use Clear Key

How does a sourceDescription with Clear Key look like? Below you find snippets for Web, Android and iOS SDKs:

Web SDK
player.source = {
    sources: {
        src: "your-manifest-URL",
        contentProtection: {
            clearkey: {
                keys : [{
                    // your decryption key(s)
                }]
            }
        }
    }
};
Android SDK

// to be added

Web SDK

// to be added

Resources

github
Make sure to follow us on GitHub!
THEO-logo-white
twitter
facebook
linkedin
Copyright © 2020. All Rights Reserved.
Leuven
New York
Singapore
Barcelona