Callback Configuration

Last updated: 2021-03-03 12:10:34

    The event callback feature can send notifications about TRTC events in the form of HTTP/HTTPS requests to your server. Currently, you can register callbacks for room events (Room Event) and media events (Media Event). Follow the directions below to configure callbacks in the TRTC console.

    Prerequisites

    1. Log in to the TRTC console and click Application Management.
    2. Find the application for which you want to configure callbacks, and click Application Info in the Operation column on the right.
    3. In the details page, click the Callback Configuration tab.

    Setting Callback Key

    1. In the Callback Key section of the Callback Configuration tab, click Edit.
    2. Enter a callback key (optional).

      Note:

      A callback key can contain up to 32 uppercase and lowercase letters and digits.

    3. Click Confirm to complete the configuration.

    Setting Callback Address

    1. In the Callback Address section of the Callback Configuration tab, click Edit.
    2. Enter a callback address (required).
      • Room event callback: supports sending notifications about creating/closing a room, entering/exiting a room, etc.
      • Media event callback: supports sending notifications about starting or stopping video/audio/substream data push, etc.

        Note:

        Protocols for callback URLs: http and https; up to 2,083 characters

    3. Click Confirm to complete the configuration.