Widevine DRM¶
To set up the Widevine DRM for a stream or for files in a VOD location, add the drm parameter as follows:
stream example_stream {
input udp://239.0.0.1:1234;
protocols dash hls;
drm widevine aes_key=1234512345...45123451234 iv=12345as...45asdfg12 signer=widevine_test;
}
Here:
aes_keyandivare required. You can get them in your account at https://www.widevine.com/.content_idis an optional parameter. It sets a unique identifier of the content. By default,content_idis equal to the stream name.
If you use a test key, you need to specify the signer option in the drm directive:
signer— a unique ID of the signer. Flussonic uses it to connect to the key server athttp://license.uat.widevine.com/cenc/getcontentkey/<signer>.
If you use a production key, you need to specify the keyserver option:
keyserver— this option is used to set a custom URL for the Widevine key server. For example,keyserver=http://license.widevine.com/cenc/getcontentkey/<signer>. In this case, thesignerparameter is optional becausesigneris available from the keyserver URL.
Find the latest list of settings for Widevine DRM in the Flussonic API reference by selecting widevine in the drop-down list of vendors.