Controls recordings manually on demand. You can start or stop recording at any time.
Operation description
-
Before you call this API, review the billing methods and pricing of live stream recording. For more information, see Billing of live stream recording.
-
This API applies to live streams that have an active recording configuration. You must first add a recording configuration.
-
You can use this API to stop a recording that was started either automatically or manually. However, if you call this API to start a recording that is already in progress, the system returns a TaskAlreadyStarted error.
-
If a manually started recording is interrupted, the recording stops. If automatic recording is not configured, the recording does not automatically restart when stream ingest resumes.
QPS limits
You can call this operation up to 50 times per second per account. Requests that exceed this limit are dropped and you may experience service interruptions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:RealTimeRecordCommand |
none |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| Command |
string |
Yes |
The action to perform. Valid values:
|
start |
| DomainName |
string |
Yes |
The main streaming domain. |
example.com |
| AppName |
string |
Yes |
The AppName of the live stream. View AppNames on the Stream Management page. |
liveApp**** |
| StreamName |
string |
Yes |
The stream name. Make sure the StreamName is correct. View StreamNames on the Stream Management page. Note
This API only supports operations on a single stream. Wildcard are not supported. |
liveStream**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F4CD8 |
Examples
Success response
JSON format
{
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F4CD8"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MalformedParam | %s, please check and try again later. | Invalid parameter, please check and try again. |
| 400 | MissingParam | %s, please check and try again later. | Parameter is missing, please check and try again. |
| 400 | CodeConfigNotFound | %s, please check and try again later. | Configuration does not exist, please check and try again. |
| 500 | InternalError | %s. | error on the live liveapi server. |
| 409 | StreamNotFound | %s, please check and try again later. | Stream does not exist, please check and try again. |
| 409 | TaskAlreadyStarted | %s, please do not start again. | Task already started, do not start again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.