StartCDNRecord
https://rtc-api.zego.im/
CDN can be configured to record all live streams, if you need to select and record a specific live stream, you can call this interface to implement it. For related callbacks, please refer to Recording File Generation Callback.
When using the CDN service provided by Tencent Cloud, the following recording parameters need to be clarified:
- Recording file format: Supports M3U8, FLV, MP4, AAC (audio only) and MP3 (audio only).
- Recording interval: Duration of the recording file, in seconds (s), the value range is 300 s ~ 7200 s, the default value is 7200 s. This parameter is invalid for M3U8 recording file format. If you want the duration of the recording file to exceed 7200 s (2 hours), you need to use the recording file merging interface to merge multiple recording files.
- Storage duration: Clarify the retention period of the recording file.
Before using this interface, you need to clarify the recording parameters, then synchronize the recording parameters to ZEGOCLOUD Technical Support for configuration, or go to ZEGOCLOUD Console for self-service configuration, for details, please refer to Console - Service Configuration - CDN.
Request
Query Parameters
Possible values: [StartCDNRecord]
Interface prototype parameters
https://rtc-api.zego.im?Action=StartCDNRecord
💡Public parameter. Application ID, assigned by ZEGOCLOUD. Get it from the ZEGOCLOUD Admin Console.
💡Common parameter. A 16-character hexadecimal random string (hex-encoded 8-byte random number). For the generation algorithm, refer to the signature example.
💡Common parameter. Current Unix timestamp in seconds. For the generation algorithm, refer to the signature example. A maximum deviation of 10 minutes is allowed.
💡Common parameter. Signature used to verify the legitimacy of the request. Please refer to the signature mechanism to generate it.
Possible values: [2.0]
Default value: 2.0
💡Public parameter. Signature version number.
Possible values: >= 1
[object Object]
Possible values: [Tencent, Ws, Huawei]
CDN vendor name。
Tencent:Tencent Cloud。 Ws:Wangsu。 Huawei:Huawei Cloud。Recording task end time, Unix timestamp. The set time must be greater than the current time, and cannot exceed 24 hours from the current time.
This parameter only takes effect when Vendor is "Tencent".
Responses
- 200
- application/json
