DeleteMedia
https://rtc-api.zego.im/
When users perform CDN recording, they will store the recorded media files on CDN servers, and users can call this interface to delete the file.
Request
Query Parameters
- Tencent Cloud: FileID.
- Wangsu: PersistentId.
- Huawei Cloud: ObsObject.
Possible values: [DeleteMedia]
Interface prototype parameters
https://rtc-api.zego.im?Action=DeleteMedia
💡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 vendors:
Tencent: Tencent Cloud. Ws: Wangsu. Huawei: Huawei Cloud.Possible values: >= 1, <= 100
Unique file identifier returned in the recording file generation callback , supporting up to 100 media file FileIds.
Please note that the unique identifiers for recording files are different for each CDN vendor:
You can also obtain the unique identifier of the media file through the search media interface, and the parameter names corresponding to the identifiers are different, please pay attention to distinguish them.
Example: &FileId[]=5285890813221514958&FileId[]=5285890813221513290
Whether to delete the cache on CDN nodes when deleting files.
Note:
Only supports Wangsu, cache deletion only applies to successfully deleted files, cache will only be deleted after the file deletion is successful.
Responses
- 200
- application/json
