Creates a recording callback configuration for a streaming domain.
Usage note
Check the live recording callback configuration before calling this interface to add the domain-level recording callback configuration. To query live recording callback configuration, see DescribeLiveRecordNotifyConfig
QPS limit
A single user can perform a maximum of 30 queries per second (QPS). Throttling is triggered when the number of calls per second exceeds the QPS limit. The throttling may affect your business. Thus, we recommend that you observe the QPS limit on this operation. For more information about what a single user means and the QPS details, see QPS limit on an API operation in ApsaraVideo Live.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | AddLiveRecordNotifyConfig | The operation that you want to perform. Set the value to AddLiveRecordNotifyConfig. |
DomainName | String | Yes | example.com | The main streaming domain. |
NotifyUrl | String | Yes | http://demo.aliyundoc.com/examplecallback.action | The callback URL that is used to receive notifications about recording events and status. Note The URL must start with http:// or https:// . For more information, see Recording event callbacks |
OnDemandUrl | String | No | http://learn.aliyundoc.com/ondemandcallback.action | The callback URL for on-demand recordings. Note The callback URL for on-demand recordings. The URL must start with http:// or https:// . For more information, see On-demand recording callbacks |
NeedStatusNotify | Boolean | No | false | Specifies whether to enable callbacks for recording status. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 | The ID of the request. |
Examples
Sample requests
https://live.aliyuncs.com/?Action=AddLiveRecordNotifyConfig
&DomainName=example.com
&NotifyUrl=http://demo.aliyundoc.com/examplecallback.action
&<Common request parameters>
Sample success responses
XML
format
<AddLiveRecordNotifyConfigResponse>
<RequestId>394966CA-5940-44D7-A1C5-24211C7B07A9</RequestId>
</AddLiveRecordNotifyConfigResponse>
JSON
format
{
"RequestId": "394966CA-5940-44D7-A1C5-24211C7B07A9"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidNotifyUrl.Malformed | Specified NotifyUrl is invalid. | The error message returned because the format of the callback URL is invalid. Check whether the value of the NotifyUrl parameter is correct. |
400 | InvalidNotifyUrl.Unsafe | Specified NotifyUrl is not safe. | The error message returned because the callback URL is unsafe. Check whether the value of the NotifyUrl parameter is correct. |
400 | ConfigAlreadyExists | Config has already exist. | The error message returned because the URL that is used to receive callback notifications is added. |
For a list of error codes, visit the API Error Center.