Help Center>
Video On Demand>
User Guide>
Global Settings>
Security Settings>
HLS Encryption Settings
Updated on 2022-10-24 GMT+08:00
HLS Encryption Settings
Hotlink protection prevents unauthorized users from downloading and playing videos, but cannot prevent malicious paid users from downloading videos to their local PCs for secondary distribution. For this purpose, VOD provides HLS encryption. Encrypted videos cannot be distributed to others even if they are downloaded by malicious users.
Notes
- HLS encryption must be performed through transcoding, so transcoding fees are generated for HLS encryption.
- VOD does not perform HLS on inputs, but encrypts HLS outputs except for those in MP4 and DASH formats.
- Encryption and decryption comply with HLS specifications. Only players that support HLS streams can play the content.
- If the URL for obtaining the key is changed, you need to re-encrypt the video. Otherwise, the new encryption key does not take effect.
- If the playback URL used after encryption is HTTPS, the KMS URL must also be HTTPS. Otherwise, the playback cannot be previewed on the VOD console.
Prerequisites
The Key Management Service (KMS) and token generation service have been deployed. For details, see Protecting Videos with HLS Encryption.
Procedure
- Log in to the VOD console.
- In the navigation pane, choose Global Settings > Security.
- Click HLS Encryption Settings. On the displayed page, enter the URL for obtaining the key. See Figure 1.
Key URL: Enter the KMS address obtained in Prerequisites.
Example: https://domain-sample/get-key
- Click OK.
- After the configuration is complete, you need to use the transcoding function to encrypt video files. HLS encryption must be enabled for the transcoding template.
Parent topic: Security Settings
Feedback
Was this page helpful?
Provide feedback
Thank you very much for your feedback. We will continue working to improve the
documentation.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot