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 limit on an API operation in ApsaraVideo Live.
Debugging
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:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
The ID of the request. |
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
<?xml version="1.0" encoding="UTF-8" ?>
<UpdateLiveSnapshotDetectPornConfigResponse>
<RequestId>16A96B9A-F203-4EC5-8E43-CB92E68F4CD8</RequestId>
</UpdateLiveSnapshotDetectPornConfigResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"UpdateLiveSnapshotDetectPornConfigResponse" : {
"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 error message returned because the OSS endpoint is invalid. Check whether the value of the OssEndpoint parameter is valid. |
400 | InvalidOssBucket.Malformed | Specified parameter OssBucket is not valid. | The error message returned because the OSS bucket is invalid. Check whether the value of the OssBucket parameter is valid. |
400 | InvalidOssBucket.NotFound | The parameter OssBucket does not exist. | The error message returned because the OSS bucket is not found. Check whether the value of the OssBucket parameter is valid. |
404 | InvalidConfig.NotFound | Config does not exist. | The error message returned because the configuration is not found. Check whether the request parameters are valid. |
For a list of error codes, see Service error codes.