Polyv Help Center

Help Center

Recording Generation Callback Notification

Updated: 2023-12-06 16:31:48

Purpose

After a recorded video is successfully generated, a callback notification will be sent to the configured interface address.

Details

After setting the interface address, if the account has the recording function enabled, when a channel under the account finishes streaming and generates an m3u8 recorded video, the live streaming system will submit the parameters channelId (channel ID) and fileUrl (recording file URL) via GET to the user-defined callback interface for notification, for example:

http://abc.com/test.do?channelId=2453970&fileUrl=https://oss-live-1.videocc.net/record/xxxxxxxx.m3u8&format=m3u8&timestamp=1629334739239&sign=109ee59cd94091f9d37228ee85231e4f&origin=auto&fileId=10bb7043f3909c350ccc8cxx&hasRtcRecord=N&sessionId=g1jtw3624e

Callback Parameter Description

Parameter Type Description
channelId String Channel ID
fileUrl String Recording file URL
format String File type, m3u8 or mp4
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
fileId String Unique recording ID
origin String Recording source
manual: Cloud recording
auto: Automatic recording
merge: Merge
clip: Clip
smart-clip: Smart clip
hasRtcRecord String This field is only useful when the cloud recording function is enabled
Y: Indicates that both cloud recording and automatic recording exist for this live stream
N: Indicates that this live stream only has automatic recording
sessionId String Session ID

How to Set

Configure via the backend:

Log in to your account - Go to [Cloud Live Streaming] - Click [Development Settings] - Click [Callback Settings] - Recording Generation Callback URL

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

Backend Setting Reference Images

New backend settings:

Reference Image

Old backend settings:

Reference Image

If you cannot find the corresponding setting, it may be due to insufficient account permissions. For assistance, please contact the online customer service in the bottom right corner.

联系客服,在线咨询