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.
Client | Playback method | HLS (M3U8) Alibaba Cloud proprietary cryptography | HLS (M3U8) license encryption | MP4 Alibaba Cloud proprietary cryptography (MP4 license encryption) | Live FLV Alibaba Cloud proprietary cryptography | HLS (M3U8) encryption | HLS (M3U8) DRM encryption |
Web client | On-demand UrlSource | ❌ | ❌ | ❌ | ❌ | ✔️ | ❌ |
On-demand VidAuth | ✔️ | ✔️ | ❌ | ❌ | ✔️ | ❌ | |
On-demand VidSts | ❌ | ❌ | ❌ | ❌ | ✔️ | ✔️ | |
Live UrlSource | ❌ | ❌ | ❌ | ❌ | ✔️ | ❌ | |
Live LiveStsSource | ✔️ | ✔️ | ❌ | ❌ | ❌ | ✔️ | |
Native (iOS/Android/Flutter) | On-demand UrlSource | ✔️ | Supported only in ApsaraVideo Player SDK V6.17.0 or later | Supported only in ApsaraVideo Player SDK V6.8.0 or later | ❌ | ✔️ | ❌ |
On-demand VidAuth | ✔️ | ✔️ | ✔️ | ❌ | ✔️ | ❌ | |
On-demand VidSts | ✔️ | ✔️ | ✔️ | ❌ | ✔️ | ✔️ Note Not supported in ApsaraVideo Player SDK for Flutter. | |
Live UrlSource | ❌ | ❌ | ❌ | ❌ | ✔️ | ❌ | |
Live LiveStsSource | ✔️ | ✔️ | ❌ | ✔️ | ❌ | ✔️ Note Not supported in ApsaraVideo Player SDK for Flutter. |