CSS supports callbacks. To use this feature, you need to create a callback template in the console, configure an address to receive callbacks for an event, and then bind the template with your push domain name. If the event triggers a callback during live streaming, Tencent Cloud will send a request to your server, which is responsible for responding to the request. After successful verification, the server will obtain a JSON packet of the callback through the address configured.
This document describes how to create, modify and delete a callback template in the console.
You can create a callback template in the following ways:
Item | Description |
---|---|
Template Name | The callback template name, which can contain up to 30 Chinese characters, letters, numbers, underscores (_), and hyphens (-). |
Template Description | The description of the callback template, which can contain up to 100 Chinese characters, letters, numbers, underscores (_), and hyphens (-). |
Callback Key | A custom callback key. It can contain up to 32 letters and numbers. For details, see Common callback parameters. |
Push Callback | Enter an HTTP or HTTPS address to receive push callbacks. |
Interruption Callback | Enter an HTTP or HTTPS address to receive push interruption callbacks. |
Recording Callback | Enter an HTTP or HTTPS address to receive recording callbacks. |
Screencapture Callback | Enter an HTTP or HTTPS address to receive screencapture callbacks. |
Porn Detection Callback | Enter an HTTP or HTTPS address to receive porn detection callbacks. |
Error callbacks | Enter an HTTP or HTTPS address to receive push error callbacks. |
If a template is bound to a domain name, you need to unbind it before you can delete it. For detailed directions, see Unbinding Callback Template.
Was this page helpful?