Stops a stream relay task.

Usage notes

  • Make sure that a stream relay task is started before you call this operation. You can call the StartMpuTask operation to start a stream relay task.
  • If a stream relay task becomes abnormal, the task is automatically stopped 2 minutes after the last person leaves the channel. In this case, you do not need to call the StopMPUTask operation. If you need to resume a stream relay task that is stopped, call the StartMpuTask operation again.

QPS limit

You can call this operation up to 10 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.

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

ParameterTypeRequiredExampleDescription
ActionStringYesStopMPUTask

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

AppIdStringYesyourAppId

The application ID. You can specify only one application ID.

TaskIdStringYesyourTaskId

The task ID. You can specify only one task ID. The value must be the same as the task ID specified by the TaskId parameter in your call of the StartMpuTask operation.

Response parameters

ParameterTypeExampleDescription
RequestIdString760bad53276431c499e30dc36f6b26be

The request ID.

Examples

Sample requests

http(s)://live.aliyuncs.com/?Action=StopMPUTask
&AppId=yourAppId
&TaskId=yourTaskId
&<Common request parameters>

Sample success responses

XML format

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

<StopMPUTaskResponse>
    <RequestId>760bad53276431c499e30dc36f6b26be</RequestId>
</StopMPUTaskResponse>

JSON format

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

{
  "RequestId" : "760bad53276431c499e30dc36f6b26be"
}

Error codes

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