Polyv Help Center

Help Center

Playback Cache Success Callback

Updated: 2022-05-24 14:25:56

Purpose:

For cloud classroom-type playback videos, once the offline cache content of the playback video is successfully generated, a callback notification will be sent to the configured interface address.

Details:

After setting the interface address, if the offline cache file of the playback video is successfully generated, the live streaming system will submit the relevant parameters to the user-defined callback interface via GET method for notification, e.g., http://abc.com/test.do?vid=8205ac89d37e05513c5cb49dcb5f2705_8&zipSize=24016232&zipUrl=//liveimages.videocc.net/ppt/8205ac89d37e05513c5cb49dcb5f2705.zip&origin=auto&sign=f9b45f4a063b3ae312db66b03f9e0fdb&videoId=e529178318&channelId=286500&timestamp=1568819519570

Parameter Name Type Description
channelId int Channel ID
vid string Video ID
zipUrl string URL of the offline compressed package, without protocol header, e.g., //liveimages.videocc.net/ppt/8205ac89d37e05513c5cb49dcb5f2705.zip
zipSize long Size of the offline compressed package, in bytes
videoId string Unique ID for the transferred playback
fileId string File ID of the recorded video corresponding to the playback video
timestamp long 13-digit timestamp
sign String Encrypted string for verification, generated by the rule md5(AppSecret+timestamp), where AppSecret is the secret key of the live streaming system
origin String Recording source of the recorded video corresponding to the playback video. manual - cloud recording, auto - automatic recording, merge - merge, clip - clip

How to Set

Prerequisite: The account must have the offline cache feature enabled. If this feature is not enabled, the offline cache callback URL will not appear in the callback settings.

14

Method 1: Set via the Backend

Log in to the account - Click [Development Settings] - Click [Callback Settings] - Find the playback generation callback URL ![15](../../unclassified-img/2019/09/cacheCallbackUrl.png)

Note: The submitted interface address must start with http:// or https://

联系客服,在线咨询