StreamPackage supports DRM/Multi-DRM to protect media content and prevent leakage caused by screenshot/screen recording.
Feature
1. DRM provider supporting CPIX protocol.
2. Support Multi-DRM (Widevine/PlayReady/FairPlay).
3. Supports key rotation.
Overall Architecture
As shown in the above figure, StreamPackage uses the CPIX URL to obtain keys from the DRM supplier for DRM Encryption.
The player pulls streams from StreamPackage via CSS (Cloud Stream Service), obtains the License and key from the DRM supplier, performs DRM decryption and plays them.
Console Configuration
Note:
Currently, StreamPackage only supports configuring DRM for CMAF-DASH or CMAF-HLS type Endpoints.
1. Log in to the StreamPackage Console, select a channel in Channel Management, click to enter, select Endpoints, and then click Create Endpoint to create an Endpoint of type CMAF-DASH or CMAF-HLS. 2. Turn on the DRM switch.
3. Select the encryption method; options are CBCS/CENC.
4. Check the DRM platforms you want to support; options are PlayReady/Widevine/FairPlay.
5. Enter the resource ID in Resource ID, which is used by the DRM supplier to locate resources. It is recommended to use a globally unique ID.
6. Enter the URL provided by the DRM supplier that supports CPIX2.3 in the Key Server URL. 7. Select the method for encrypting the video in Video Encryption Preset.
8. Select the method for encrypting the audio in Audio Encryption Preset.
9. If you need to customize the initialization vector, enter the corresponding string in Constant Initialization Vector. The format is a hexadecimal string, with a total of 128 bits and 32 characters.
10. If periodic key rotation is needed, enter the corresponding number of seconds in Key Rotation Interval, ranging from 300 seconds to 2,592,000 seconds.
Play
Please refer to the documentation of your DRM supplier to adapt to different players for playback.
Notes:
When DRM is configured and the StreamPackage access Key Server URL status is abnormal, playback will return a 404 error.