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 CDN

Resume a stream on CDN

Last updated:2025-01-24 17:55

1 Description

Re-enables a previously forbidden live stream to be published to CDN,Applicable to the direct push CDN scenario. If you need to apply it to the relay CDN scenario, please use the Start forwarding a stream to CDN interface.

For the first use of this interface, you need to contact ZEGOCLOUD technical support for configuration.

2 Request method and endpoint

  • Request method: GET
  • Request endpoint: https://rtc-api.zego.im/?Action=ResumeCDNLiveStream
  • Transmission protocol: HTTPS
  • Rate limit: 20 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.

4 Sample request

https://rtc-api.zego.im/?Action=ResumeCDNLiveStream
&StreamId=stream001
&<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
Array of Object
Returned data.
└ CdnType
String
CDN Type.
  • ws: Wangsu Cloud
  • aliyun: Alibaba Cloud
  • tencent: Tencent Cloud
  • huawei:Huawei Cloud。
└ CdnResult
String
CDN processing result.

6 Sample response

{
    "Code": 0,
    "Message": "success",
    "Data": [
        {
            "CdnType": "ws",
            "CdnResult": "Resume tasks added successfully."
        }
    ],
    "RequestId": "3162938795049910659"
}

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
0 Request succeeded. -
1 Request failed. -
2 Parameter error. -
3 Authentication failed. Please check if the authentication parameters are correct.
Page Directory
  • Free trial
  • 提交工单
    咨询集成、功能及报价等问题
    电话咨询
    400 1006 604
    Get Consulting
    Scan Wechat QR code