edit-icon download-icon


Last Updated: Mar 19, 2018


Detection configuration interface can configure live stream detection based on the domain name and App level.

Request parameters

Parameters Type Required Example values Description
Action String Yes AddLiveSnapshotDetectPornConfig

The name of this interface. Value: AddLiveSnapshotDetectPornConfig

AppName String Yes testApp

App name.
The*symbol is supported, indicating all the AppNames under the domain name.

DomainName String Yes www.yourdomain.com

OSS domain name.

OssBucket String Yes livebucket

Name of the bucket in OSS.

OssEndpoint String Yes oss.aliyunlive.com

OSS domain name.

Interval Integer No 10

Sampling interval.
Range: [5,3600]
Units: seconds.

OssObject String No record/{AppName}/{StreamName}/{Sequence}

Object template used to save illegal pictures involving politics and porn. If not given explicitly, the template is {AppName}/{StreamName}/{Date}/{Hour}/{Minute}_{Second}.jpg.

Scene.N RepeatList No live

Detection scenes, including ‘porn’, ‘terrorism’, ‘ad’, ‘qrcode’, ‘live’.
Default value: ‘porn’.

Return parameters

Parameters Type Example values Description
RequestId String 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8

The ID of the job request.


Request example

  1. https://live.aliyuncs.com/?Action=AddLiveSnapshotDetectPornConfig&DomainName=live.aliyunlive.com&AppName=xxx&OssEndpoint=oss-cn-hangzhou.aliyuncs.com&OssBucket=bucket&OssObject=record/{AppName}/{StreamName}/{Sequence}&PornThreshold=0.5&SuspectThreshold=0.05&Interval=30<Public Request Parameter>

For more information, see Public Request Parameter.

Normal return example

JSON format

  1. {
  2. "RequestId":"16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
  3. }

Exception return example

JSON format

  1. {
  2. "Code":"InternalError",
  3. "HostId":"live.aliyuncs.com",
  4. "Message":"The request processing has failed due to some unknown error.",
  5. "RequestId":"6EBD1AC4-C34D-4AE1-963E-B688A228BE31"
  6. }

Error code

For more information about error code of this product, see Error code.

Thank you! We've received your feedback.