All Products
Search
Document Center

ApsaraVideo Live:AddLiveSnapshotDetectPornConfig

Last Updated:Jun 10, 2026

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

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

live:AddLiveSnapshotDetectPornConfig

create

*Domain

acs:cdn:*:{#accountId}:domain/{#DomainName}

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:

  • porn: pornography detection. This is the default value.

  • terrorism: terrorism detection

  • ad: ad violation detection

  • live: undesirable scene detection

  • logo: logo detection

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.