[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

Setup the Bitmovin Player with multiple DRM solutions

OverviewLink Icon

Using the Bitmovin player in a multi DRM configuration is very simple. You can add multiple DRM configurations (e.g., Widevine configuration, PlayReady configuration, etc.) to the player configuration and you can also set all the advanced options for each DRM configuration. An example multi DRM configuration could look like the following:

1var conf = {
2 key: 'YOUR-PLAYER-LICENSE-KEY-HERE',
3 source: {
4 dash: 'DASH_MANIFEST_URL',
5 hls: 'HLS_MASTER_PLAYLIST_URL',
6 drm: {
7 widevine: {
8 LA_URL: 'https://mywidevine.licenseserver.com/',
9 prepareMessage: function (keyMessage) {
10 return keyMessage.message;
11 }
12 },
13 playready: {
14 LA_URL: 'https://myplayready.licenseserver.com/',
15 customData: 'INSERT-YOUR-CUSTOMDATA'
16 },
17 access: {
18 LA_URL: 'https://myaccess.licenseserver.com/',
19 authToken: 'INSERT-YOUR-BASE64-ENCODED-AUTH-TOKEN'
20 },
21 primetime: {
22 LA_URL: 'https://myprimetime.licenseserver.com/'
23 },
24 fairplay: {
25 LA_URL: 'https://fairplay.licenseserver.com/',
26 certificateURL: 'https://fairplay.licenseserver.com/certificate-url'
27 }
28 }
29 }
30};

WidevineLink Icon

1var conf = {
2 key: 'YOUR-PLAYER-LICENSE-KEY-HERE',
3 source: {
4 dash: 'DASH_MANIFEST_URL',
5 hls: 'HLS_MASTER_PLAYLIST_URL',
6 drm: {
7 widevine: {
8 LA_URL: 'https://mywidevine.licenseserver.com/',
9 prepareMessage: function (keyMessage) {
10 return keyMessage.message;
11 }
12 }
13 }
14 }
15};

PlayReadyLink Icon

1var conf = {
2 key: 'YOUR-PLAYER-LICENSE-KEY-HERE',
3 source: {
4 dash: 'DASH_MANIFEST_URL',
5 hls: 'HLS_MASTER_PLAYLIST_URL',
6 drm: {
7 playready: {
8 LA_URL: 'https://myplayready.licenseserver.com/',
9 customData: 'INSERT-YOUR-CUSTOMDATA'
10 }
11 }
12 }
13};

FairplayLink Icon

1var conf = {
2 key: 'YOUR-PLAYER-LICENSE-KEY-HERE',
3 source: {
4 dash: 'DASH_MANIFEST_URL',
5 hls: 'HLS_MASTER_PLAYLIST_URL',
6 drm: {
7 fairplay: {
8 LA_URL: 'https://fairplay.licenseserver.com/',
9 certificateURL: 'https://fairplay.licenseserver.com/certificate-url'
10 }
11 }
12 }
13};

Adobe PrimetimeLink Icon

1var conf = {
2 key: 'YOUR-PLAYER-LICENSE-KEY-HERE',
3 source: {
4 dash: 'DASH_MANIFEST_URL',
5 hls: 'HLS_MASTER_PLAYLIST_URL',
6 drm: {
7 primetime: {
8 LA_URL: 'https://myprimetime.licenseserver.com/'
9 }
10 }
11 }
12};

Adobe AccessLink Icon

1var conf = {
2 key: 'YOUR-PLAYER-LICENSE-KEY-HERE',
3 source: {
4 dash: 'DASH_MANIFEST_URL',
5 hls: 'HLS_MASTER_PLAYLIST_URL',
6 drm: {
7 access: {
8 LA_URL: 'https://myaccess.licenseserver.com/',
9 authToken: 'INSERT-YOUR-BASE64-ENCODED-AUTH-TOKEN'
10 }
11 }
12 }
13};

Give us feedback