Skip to content

Conax DRM

Configure DRM for a stream as follows:


stream example_stream {
  input udp://239.0.0.1:1234;
  protocols dash hls;
  meta drm_id ev0234; # Optional, drm_id is a stream name by default
  drm conax keyserver=https://uSeR:Passw0rd@cas-gateway:12346;
}

Configure DRM for a VOD location as follows:


file drm {
  path /storage/vod;
  protocols dash hls;
  drm conax keyserver=https://uSeR:Passw0rd@cas-gateway:12346;
}

Here:

  • https://uSeR:Passw0rd@cas-gateway:12346 — a keyserver URL with credentials provided to you by Conax.
  • drm_id — this parameter is called ContentId in Conax. If you want to specify ContentId in a live stream configuration, use the meta drm_id <ContentID> directive. For VOD files, for example, for /path/to/vod/content.mp4, Flussonic reads ContentId from the /path/to/vod/content.mp4.conax_id file.

Configuration notes

Note

You need to specify only the credentials, hostname, and port in the drm directive. Flussonic adds the /ca-server/webservices/key-server/conax path automatically.

Important!

If you get a password containing special characters, like aaa%bbb, from Conax, be careful: you might need to escape some special characters when you put them into the config file.

You should rewrite this example password aaa%bbb as aaa%25bbb because the % character must be written as %25 in HTTP URLs.

Configuring the DRM systems in use

If you turned off some of the systems (for example, FairPlay) in your Nagra account, you should specify in Flussonic the systems that remain in use. Otherwise, an error will occur in Conax, and it will be impossible to play the stream.

Note

Flussonic issues the event drm_key_fetch_error with the error description if DRM responds with an error.

To avoid errors after you turned off a DRM system, use the option systems where you specify which DRMs can be used.

For example, drm conax systems=widevine,playready


stream example_stream {
  input udp://239.0.0.1:1234;
  protocols dash hls;
  meta drm_id 123;
  drm conax keyserver=https://uSeR:Passw0rd@cas-gateway:12346 systems=widevine,playready;
}

See also: