Menambahkan konfigurasi moderasi video untuk aliran live dalam aplikasi di bawah nama domain.
Deskripsi operasi
-
The live streaming moderation feature identifies and reviews non-compliant sensitive content at the domain and application level, and promptly notifies users of such violations via callbacks. Users can then review the content and take appropriate actions.
-
Currently, only some live streaming centers support intelligent moderation. For a list of live streaming centers that support this feature, see Service regions.
QPS limit
The QPS limit of this operation is 30 calls per second per user. Throttling is triggered when the number of calls per second exceeds the QPS limit. The throttling may affect your business. Use the operation appropriately. For more information, see QPS limits.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:AddLiveSnapshotDetectPornConfig |
create |
*Domain
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Domain streaming utama. |
example.com |
| AppName |
string |
Yes |
Nama aplikasi tempat aliran live berada. |
testApp |
| OssEndpoint |
string |
Yes |
Titik akhir bucket Object Storage Service (OSS). Setelah peninjauan selesai, Anda dapat mencari pelanggaran tertentu di konsol OSS berdasarkan informasi callback. Anda harus mengonfigurasi titik akhir OSS terlebih dahulu. Untuk informasi lebih lanjut, lihat Konfigurasi moderasi konten. |
cn-oss-****.aliyuncs.com |
| OssBucket |
string |
Yes |
Nama bucket OSS. Setelah peninjauan selesai, Anda dapat mencari pelanggaran tertentu di konsol OSS berdasarkan informasi callback. Anda harus membuat bucket OSS terlebih dahulu. Untuk informasi lebih lanjut, lihat Konfigurasi moderasi konten. |
livebucket |
| OssObject |
string |
No |
Nama snapshot yang menyimpan pelanggaran seperti konten pornografi dan konten sensitif secara politis. |
record/{AppName}/{StreamName}/{Sequence}.jpg |
| Interval |
integer |
No |
Interval pengambilan snapshot dari aliran live. Nilai valid: 5 hingga 3600. Unit: detik. |
10 |
| Scene |
array |
No |
Deteksi daftar scene. |
live |
|
string |
No |
The moderation scenario. Valid values:
|
live |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
16A96B9A-F203-4EC5-8E43-CB92E68F**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F****"
}
Respons error
JSONformat
{
"Code":"InternalError",
"HostId":"live.aliyuncs.com",
"Message":"The request processing has failed due to some unknown error.",
"RequestId":"6EBD1AC4-C34D-4AE1-963E-B688A228BE31"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidOssEndpoint.Malformed | Specified parameter OssEndpoint is not valid. | |
| 400 | InvalidOssBucket.Malformed | Specified parameter OssBucket is not valid. | |
| 400 | InvalidOssObject.Malformed | Specified parameter OssObject is not valid. | |
| 400 | InvalidOssBucket.NotFound | The parameter OssBucket does not exist. | |
| 400 | InvalidScenes | Specified parameter Scene is not valid. | |
| 400 | ConfigAlreadyExists | Config has already exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.