Menghasilkan kunci untuk unduhan aman. SDK ApsaraVideo Player menyediakan fitur unduhan aman. Video yang diunduh ke perangkat lokal Anda dalam mode ini dienkripsi. Anda hanya dapat memutar video terenkripsi dengan menggunakan file kunci yang dihasilkan dari aplikasi yang Anda tentukan. Unduhan aman melindungi video Anda dari pemutaran atau distribusi berbahaya.
Deskripsi operasi
To use the secure download feature, you must enable the download feature in the ApsaraVideo VOD console and set the download method to secure download. For more information, see Configure download settings.
After you generate a key for secure download, you must configure the key in ApsaraVideo Player SDK. For more information, see Secure download.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:GenerateDownloadSecretKey |
create |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppIdentification |
string |
Yes |
Pengidentifikasi unik aplikasi.
Untuk informasi selengkapnya tentang cara memperoleh pengidentifikasi unik aplikasi, lihat Memperoleh pengidentifikasi unik aplikasi. |
BB:0D:AC:74:D3:21:09:EF:9C:71:1A:5E:77:2C:8E:BF:03:FD:FA:5A |
| AppDecryptKey |
string |
Yes |
String kustom dengan panjang 16 hingga 32 karakter. String harus berisi huruf besar, huruf kecil, dan digit. |
AppDecryptKeyAndroid20230101 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| AppEncryptKey |
string |
The key file for secure download. |
*** |
| RequestId |
string |
The ID of the request. |
E99B9BAD-7F9D-552B-A689-B72E92EA040E |
Contoh
Respons sukses
JSONformat
{
"AppEncryptKey": "***",
"RequestId": "E99B9BAD-7F9D-552B-A689-B72E92EA040E"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.