Polyv Help Center

Help Center

Playback Cache Success Callback

Updated: 2022-06-23 15:13:06

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
type string record - temporary file, playback - playback; if this field is absent, it defaults to playback
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 - merged, clip - clipped

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: Via Backend Settings

Log in to the account - Click [Developer Settings] - Click [Callback Settings] - Find the playback generation callback URL

15

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

联系客服,在线咨询