[object Object] Icon

Encoding
Learn how to create, start, manage and modify Encodings

[object Object] Icon

Player
Learn how to create, start, manage and modify Players

[object Object] Icon

Analytics
Learn how to create, start, manage and modify Analyticss

Docs Home
User shortcuts for search
Focus by pressing f
Hide results by pressing Esc
Navigate via   keys

Thu Sep 13 2018

How to play MPEG-CENC ClearKey content

OverviewLink Icon

Please replace YOUR-PLAYER-LICENSE-KEY-HERE,YOUR-KEY-HERE, and YOUR-KID-HERE with its respective value, in the example below, then it should work as expected. You can create MPEG-CENC ClearKey encrypted content with our service as well.

ExampleLink Icon

1<!DOCTYPE html>
2<html>
3<head>
4 <meta charset="utf-8">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
6 <script src="https://bitmovin-a.akamaihd.net/bitmovin-player/stable/7/bitmovinplayer.js"></script>
7</head>
8
9<body>
10<div id="player"></div>
11<script type="text/javascript">
12 var conf = {
13 key: "YOUR-PLAYER-LICENSE-KEY-HERE",
14 source: {
15 dash: "https://example.com/path/to/your/clear-key/content/manifest.mpd",
16 drm: {
17 clearkey: [{
18 key: 'YOUR-KEY-HERE',
19 kid: 'YOUR-KID-HERE' //optional
20 }]
21 }
22 }
23 };
24
25 var player = bitmovin.player("player");
26 player.setup(conf).then(function (value) {
27 console.log("Successfully created bitmovin player instance");
28 }, function (reason) {
29 console.log("Error while creating bitmovin player instance");
30 });
31</script>
32</body>
33</html>

Give us feedback