All Products
Search
Document Center

ApsaraVideo Live:UpdateLiveSnapshotDetectPornConfig

Last Updated:Jul 16, 2024

Modifies a video moderation configuration.

Usage notes

  • Obtain the main streaming domain, and then call this operation to modify a video moderation configuration.

  • Only some live centers support the automated review feature. For more information, see Supported regions.

QPS limit

You can call this operation up to 30 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

UpdateLiveSnapshotDetectPornConfig

The operation that you want to perform. Set the value to UpdateLiveSnapshotDetectPornConfig.

DomainName

String

Yes

example.com

The main streaming domain.

AppName

String

Yes

liveApp****

The name of the application to which the live stream belongs.

OssEndpoint

String

No

cn-oss-****.aliyuncs.com

The endpoint of the Object Storage Service (OSS) bucket.

OssBucket

String

No

liveBucket****

The name of the OSS bucket.

OssObject

String

No

{liveApp****}/{liveStream****}/{Date}/{Hour}/{Minute}_{Second}.jpg

The name of the snapshot that stores violations such as pornographic content and politically sensitive content.

Interval

Integer

No

5

The interval at which snapshots are captured from the live stream. Valid values: 5 to 3600. Unit: seconds.

Scene.N

String

No

live

The moderation scenario. Valid values:

  • porn (default): pornography detection

  • terrorism: terrorism detection

  • ad: ad violation detection

  • live: undesirable scene detection

  • logo: logo detection

Response parameters

Parameter

Type

Example

Description

RequestId

String

16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The request ID.

Examples

Sample requests

http(s)://live.aliyuncs.com/?Action=UpdateLiveSnapshotDetectPornConfig
&AppName=liveApp****
&DomainName=example.com
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<UpdateLiveSnapshotDetectPornConfigResponse>
    <RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
</UpdateLiveSnapshotDetectPornConfigResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}

Error codes

HTTP status code

Error code

Error message

Description

400

InvalidOssEndpoint.Malformed

Specified parameter OssEndpoint is not valid.

The OSS endpoint is malformed. Check whether the value of the OssEndpoint parameter is valid.

400

InvalidOssBucket.Malformed

Specified parameter OssBucket is not valid.

The OSS bucket is malformed. Check whether the value of the OssBucket parameter is valid.

400

InvalidOssBucket.NotFound

The parameter OssBucket does not exist.

The OSS bucket is not found. Check whether the value of the OssBucket parameter is valid.

404

InvalidConfig.NotFound

Config does not exist.

The configuration is not found. Check whether the request parameters are valid.

For a list of error codes, see Service error codes.