Video encryption is a technology that protects video content from hotlinking, illegal downloads, and unauthorized redistribution. Even if video files are downloaded locally, they cannot be played or distributed. This helps protect video copyright and ensures content security.
Encryption methods
ApsaraVideo VOD supports the following three encryption methods:
Alibaba Cloud proprietary cryptography
Description: Uses Alibaba Cloud's proprietary encryption algorithm to encrypt video data. Each media file has an independent encryption key, avoiding large-scale security issues caused by a single key leakage.
Scenarios: Suitable for scenarios with high security requirements, such as online education, finance, and industry training.
Limitations:
Only supports decryption and playback using ApsaraVideo Player SDK.
MP4 format is only supported by native ApsaraVideo Player SDK for iOS and Android.
Web Player SDK supports playback of encrypted videos on mainstream mobile browsers.
HLS encryption
Description: Uses AES-128 encryption to encrypt video content. Keys are managed through envelope encryption to ensure security.
Scenarios: Suitable for scenarios that demand broad compatibility across platforms, but have relatively lower security requirements.
Limitations:
Encryption keys are susceptible to theft, resulting in lower security compared to Alibaba Cloud proprietary cryptography.
Requires a higher technical proficiency, including self-built key management and token issuance services.
DRM encryption
Description: Uses commercial digital rights management (DRM) technologies, such as Apple FairPlay and Google Widevine to provide high-level protection.
Scenarios: Suitable for scenarios with extremely high copyright protection requirements, such as exclusive TV shows and paid content.
Limitations:
Higher cost, with charges based on the number of license calls.
Higher integration complexity.
Compatibility of ApsaraVideo Player SDK
The following table illustrates encryption methods supported by ApsaraVideo Player SDKs across various platforms.
Terminal | Playback method | Proprietary encryption (HLS) | License-based proprietary encryption (HLS) | License-based proprietary encryption (MP4) | Proprietary encryption (Live FLV) | HLS encryption | Alibaba Cloud DRM encryption | Third-party DRM encryption |
Web | VOD UrlSource | ❌ | ❌ | ❌ | ❌ | ✔️ | ❌ | ✔️ |
VOD VidAuth | ✔️ | ❌ | ❌ | ❌ | ✔️ | ❌ | ❌ | |
VOD VidSts | ❌ | ❌ | ❌ | ❌ | ✔️ | ✔️ | ❌ | |
Live UrlSource | ❌ | ❌ | ❌ | ❌ | ✔️ | ❌ | ✔️ | |
Live LiveStsSource | ✔️ | ✔️ | ❌ | ❌ | ❌ | ✔️ | ❌ | |
Native (iOS/Android/Flutter/Harmony) | VOD UrlSource | ✔️ | ✔️ Requires SDK V6.17.0 or later. | ✔️ Requires SDK V6.8.0 or later. | ❌ | ✔️ | ❌ | ✔️ Requires SDK V7.8.0 or later. Flutter and Harmony are not supported. |
VOD VidAuth | ✔️ | ✔️ | ❌ | ❌ | ✔️ | ❌ | ❌ | |
VOD VidSts | ✔️ | ✔️ | ❌ | ❌ | ✔️ | ✔️ Flutter and Harmony are not supported. | ❌ | |
Live UrlSource | ❌ | ❌ | ❌ | ❌ | ✔️ | ❌ | ✔️ Requires SDK V7.8.0 or later. Flutter and Harmony are not supported. | |
Live LiveStsSource | ✔️ | ✔️ | ❌ | ✔️ | ❌ | ✔️ Flutter and Harmony are not supported. | ❌ |