If an event configured in the template triggers the callback during live streaming, Tencent Cloud will send a request to your server which is responsible for the response. After authentication, a JSON packet of the callback can be obtained.
Currently, the following LVB events can trigger a notification: stream push, stream interruption, recording, screencapturing, and porn detection.
Process description:
{"code":0}
to the response.There is a retry mechanism for event notification service. Such retries will be made with an interval of 60 seconds for a total of 3 times. To avoid the impact of such retries on your server and network bandwidth, you should make sure that the response packet can be returned normally. A retry will be triggered in the following cases:
Callback configuration can mainly be implemented in two ways: in the LVB Console and through server API.
Note:
You can configure different callback URLs for LVB stream push, stream interruption, recording, screencapturing, and porn detection events.
DomainName
and TemplateId
(returned in step 1) parameters, and enter the same AppName
as in the push and playback addresses to enable callback for certain live streams.After the callback template is successfully associated with the domain name, when a template event is triggered during live streaming, Tencent Cloud will actively send a JSON packet containing the callback message to your server. Specific parameters of the callback message are described as follows:
Was this page helpful?