Documentation
Server_APIs_v2 Server APIs v2
Documentation
Demo APP
SDK Center
API Center
FAQ
Code Market
Console
Sign Up
Log In
中文站 English
  • Documentation
  • Server APIs v2
  • Streaming control
  • Resume a stream on ZEGO RTC Server

Resume a stream on ZEGOCLOUD RTC Server

Last updated:2025-01-24 17:55

1 Description

Re-enables a previously forbidden live stream to be published to ZEGOCLOUD's RTC server.

2 Request method and endpoint

  • Request method: GET
  • Request endpoint: https://rtc-api.zego.im/?Action=ResumeRTCStream
  • Transmission protocol: HTTPS
  • Rate limit: 20 requests/second (Testing environment: 5 requests/second)

3 Request parameters

Listed below are the parameters specific to this request and part of the public request parameters. For the complete list of public request parameters, see Server APIs public request parameters.

Parameter Type Required Description
StreamId
String
Yes
Stream ID.
Sequence
String
Yes
Request sequence number. Requests must be sent with the request sequence number in ascending order. It is recommended to use a timestamp (in milliseconds) as the request sequence number.

4 Sample request

https://rtc-api.zego.im/?Action=ResumeRTCStream
&StreamId=rtc01
&Sequence=1
&<Public Request Parameters>

5 Response parameters

Parameter Type Description
Code
Number
Return code.
Message
String
Description of the request execution result.
RequestId
String
Request ID.
Data
Object
Returned data.

6 Sample response

{
    "Code":0,
    "Message":"ok",
    "RequestId":"5310603407599603439",
    "Data":null
}

7 Return codes

Listed below are the return codes related to this API. For the complete list of return codes, see Return codes.

Return Code Description Handling Suggestions
3000 Invalid App. Please contact ZEGOCLOUD technical support for handling.
3001, 5006, 30003 Internal error. Please contact ZEGOCLOUD technical support for handling.
3002 Timestamp error. Please regenerate a new Timestamp.
3003 App is not configured with Token. Please contact ZEGOCLOUD technical support for handling.
30002 API call frequency is too high. Please reduce the API request frequency.
30004 Parameter isTest is incorrect. Please check if the common request parameter isTest is correct.
30005 Invalid AppId. Please check if the AppId is correct.
30009 Invalid StreamId, stream name is irregular. Please check if the StreamId conforms to the stream naming conventions.
40005 Authentication failed. Please check if the signature Signature is correct.
Page Directory
  • Free trial
  • 提交工单
    咨询集成、功能及报价等问题
    电话咨询
    400 1006 604
    Get Consulting
    Scan Wechat QR code