Recording Generation Callback Feature
Updated: 2024-10-21 09:33:43
Purpose
如在账号里设置了录制生成回调URL,在录制生成后,会对所设置的接口地址进行回调通知。
Timeout and Retry
回调服务器在发送消息通知后,5秒内没有收到您的服务器的响应,即认为通知失败。后续失败会以5秒、10秒、20秒的间隔继续重试3次。
Callback Message Format
事件回调消息以 HTTP/HTTPS POST 请求发送给您的服务器,其中:
- 字符编码格式:UTF-8。
- 请求:body 格式为 JSON。url会带上timestamp和sign,验签名方式为md5(body + timestamp + appSecret)
- 应答要求:响应头需指定Content-Type: application/json;
- 正确应答:http status code: 200为正确业务接收处理,其他状态一律视为失败重试处理 。
Callback Parameter Description
| Parameter Name | Type | Description |
|---|---|---|
| duration | Long | Duration of the recording file, in seconds |
| fileUrl | String | Recording file URL |
| fileId | String | Recording file name |
| height | Long | Height of the recorded video |
| lessonId | Long | Lesson number |
| startTime | String | Recording start time, timestamp (in seconds) |
| width | Long | Width of the recorded video |
