[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 Conax DRM Service

OverviewLink Icon

If you are not sure what DRM is, you want have an overview and get started, please have a look at our DRM Setup Guide.

Nearly every license provider, such as Irdeto, EZDRM or Conax, requires a few special information being sent to the DRM license server, or responds with a proprietary format. Instead of integrating a few license providers into the core of our player, we decided to provide necessary configuration options via the player configuration.


Widevine, PlayReady & FairPlayLink Icon

1var conf = {
2 key: 'YOUR-PLAYER-KEY-HERE',
3 source: {
4 dash: 'MPEG-DASH_MANIFEST_URL',
5 hls: 'HLS_MANIFEST_URL',
6 drm: {
7 widevine: {
8 LA_URL: 'CONAX_WIDEVINE_LICENSE_SERVER_URL',
9 headers: [{
10 name: 'Conax-Custom-Data',
11 value: '{"Version":"1.0.0","CxAuthenticationDataToken":"'+ TOKEN +'","CxClientInfo":{"DeviceType":"Browser","DrmClientType":"Widevine-HTML5","DrmClientVersion":"1.0.0","CxDeviceId":"'+ DEVICE_ID +'"}}'
12 }]
13 },
14 playready: {
15 LA_URL: 'CONAX_PLAYREADY_LICENSE_SERVER_URL',
16 headers: [{
17 name: 'Conax-Custom-Data',
18 value: '{"Version":"1.0.0","CxAuthenticationDataToken":"'+ TOKEN +'","CxClientInfo":{"DeviceType":"Browser","DrmClientType":"PlayReady-HTML5","DrmClientVersion":"1.0.0","CxDeviceId":"'+ DEVICE_ID +'"}}'
19 }]
20 },
21 fairplay: {
22 LA_URL: 'CONAX_FAIRPLAY_LICENSE_SERVER_URL',
23 certificateURL: 'CERTIFICATE_URL',
24 prepareMessage : function(event, session) {
25 return event.message;
26 },
27 prepareContentId : function(initDataAsString) {
28 var base64decoded = window.atob(initDataAsString.split("skd://")[1].split("?")[0]);
29 var json = JSON.parse(base64decoded);
30 return '{"contentRef": "' + json.ContentRef + '", "keyId": "' + json.KeyId + '"}';
31 },
32 prepareLicense : function(license) {
33 return JSON.parse(license).CkcMessage;
34 },
35 useUint16InitData : true,
36 headers: [{
37 name: 'Content-type',
38 value: 'application/octet-stream'
39 },{
40 name: 'Conax-Custom-Data',
41 value: '{"Version":"1.0.0","CxAuthenticationDataToken":"'+ TOKEN +'","CxClientInfo":{"DeviceType":"Browser","DrmClientType":"FairPlay-HTML5","DrmClientVersion":"1.0.0","CxDeviceId":"'+ DEVICE_ID +'"}}'
42 }]
43 }
44 }
45 }
46};

Please replace the following placeholders in the code:

  • HLS_MANIFEST_URL: The URL to the HLS manifest (M3U8) file.
  • MPEG-DASH_MANIFEST_URL: The URL to the DASH manifest (mpd) file.
  • CERTIFICATE_URL: The URL to the Fairplay certificate. This needs to be accessible for the player.
  • TOKEN: The provided by Conax
  • DEVICE_ID: The device ID provided by Conax

Give us feedback