Close Stream API

Use this API to close a specified video stream.

Requirements

ItemSpecification
ProtocolHTTP or HTTPS
MethodPOST
EncodingUTF-8
FormatAll request and response parameters use JSON

Timeout

  • Recommended timeout: 7s
  • Internal processing timeout is 3s with one automatic retry. Normal response time is within 100ms.

Request

Request URL

ClusterRequest URLSupported Products
Shanghai Video Streamhttp://api-videostream-sh.fengkongcloud.com/finish_videostream/v4Chinese Video Stream
Singapore Video Streamhttp://api-videostream-xjp.fengkongcloud.com/finish_videostream/v4Chinese Video Stream, English Video Stream, Arabic Video Stream

Request Parameters

ParameterTypeRequiredMax LengthDescription
accessKeystringYes20Company key for authentication, provided by ISHUMEI when the service is activated.
requestIdstringYes32The requestId of the video stream to close.

Request Example

{
  "accessKey": "YOUR_ACCESS_KEY",
  "requestId": "1639824316368"
}

Response

Response Parameters

ParameterTypeRequiredDescription
requestIdstringYesUnique ISHUMEI request identifier.
codeint32YesResponse code. See Response Codes.
messagestringYesResponse message corresponding to the code. See Response Codes.

Response Codes

CodeMessageDescription
1100SuccessThe request completed successfully.
1901QPS limit exceededThe request rate limit has been exceeded.
1902Invalid parametersOne or more request parameters are invalid.
1903Service failureAn internal service error occurred.
1904Stream count limit exceededThe maximum number of concurrent streams has been reached.
9101Unauthorized operationThe provided accessKey does not have permission for this operation.

Response Example

{
  "code": 1100,
  "message": "Success",
  "requestId": "a78eef377079acc6cdec24967ecde722"
}