SearchMedia
https://rtc-api.zego.im/
When users perform CDN recording, the recorded media files are stored on CDN servers. Users can call this interface to query information about their media files, such as media file name, creation time, etc.
Before using this interface for the first time, please confirm whether the CDN live service has been activated. If not activated, please go to ZEGOCLOUD Console to activate it yourself. For details, please refer to Console - Service Configuration - CDN, or contact ZEGO technical support to activate it.
Request
Query Parameters
- Tencent: Tencent Cloud.
- Ws: Wangsu.
- Huawei: Huawei Cloud.
- When calling this interface for the first time, leave the Marker parameter empty.
- When calling this interface again, set the Marker parameter to NextMarker (the marker information in the returned result).
Possible values: [SearchMedia]
Interface prototype parameters
https://rtc-api.zego.im?Action=SearchMedia
💡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: [Tencent, Ws, Huawei]
Possible values and corresponding CDN providers:
File name prefix, which matches media file names by prefix, supporting up to 20 bytes.
Note:
When using this parameter, URL encoding (UrlEncode) must be performed on its content.
Start time for searching files (file creation time), Unix timestamp, accurate to seconds.
This parameter is only valid when Vendor is set to Tencent.
End time for searching files (file creation time), Unix timestamp, accurate to seconds.
This parameter is only valid when Vendor is set to Tencent.
Number of records to return, default value is 10. Value range: PageNumber * PageSize + PageSize must not exceed 5000.
This parameter is only valid when Vendor is set to Tencent.
Which page to retrieve. Value range: PageNumber * PageSize + PageSize must not exceed 5000.
This parameter is only valid when Vendor is set to Tencent.
Possible values: >= 1, <= 10
List of file IDs, supporting up to 10 FileIds, with a maximum length of 40 characters for each FileId.
This parameter is only valid when Vendor is set to Tencent.
Possible values: >= 1, <= 10
List of stream IDs for CDN recording, supporting up to 10 StreamIds, matching any element in the collection.
This parameter is only valid when Vendor is set to Tencent.
Marker for retrieving information. When this parameter is not filled, the first page of retrieved information is returned by default.
Each time this interface is called, the response will return NextMarker, and developers need to determine whether the last page has been reached.
This parameter is valid when Vendor is set to Ws or Huawei.
Possible values: >= 1 and <= 1000
Default value: 1000
Maximum number of records returned in a single call, value range [1, 1000], default is 1000.
For information lists exceeding the MaxKeys value, you need to call this interface again based on the NextMarker value from the previous call.
This parameter is valid when Vendor is set to Ws or Huawei.
Responses
- 200
- application/json
