Updated on 2026-01-08 GMT+08:00

Relay

In contrast to traditional cloud livestreaming, which requires dedicated tools to push content, the relay feature lets you pull source streams, whether live feeds or VOD assets for pseudo-live or loop broadcasting, and push them to target URLs. This enables efficient content transmission and distribution.

Notes

By default, the Streaming > Relay menu is hidden. To access it, you need to submit a service ticket.

Relay is in the open beta test (OBT) phase and is available free. Once the OBT ends, billing will apply. The timeline will be announced at a later date.

Creating a Relay Task

  1. Log in to the Live console.
  2. In the navigation pane, choose Streaming > Relay.
  3. Click Create Relay Task to open the Configure Relay Task dialog box on the right, as shown in Figure 1.

    Configure parameters by referring to Figure 1.
    Figure 1 Creating a relay task
    Table 1 Parameters

    Parameter

    Description

    Task Region

    Region where the current task is deployed.

    Execution Time

    Start time and end time of the task. This parameter is mandatory.

    The start time must be later than the current time, and the end time must be later than the start time.

    Event Callback URL (Optional)

    Add an event callback address. If this parameter is set, an HTTP/HTTPS message is sent to the event callback address each time the relay task is triggered.

    HTTPS is more secure than HTTP and is recommended.

    Source Stream Type

    Source stream type. Available options are:

    • Livestreams: You can pull livestreams and push them to Live origin servers or third-party origin servers.
    • Video path: You can pull one or more recorded videos and push them to Live origin servers or third-party origin servers.

    Source Stream Addresses

    If Source Stream Type is set to Livestream, you can configure only one source stream address. If it is set to Video path, you can configure multiple source stream addresses and must also set the number of playbacks.

    You can add the same source stream address multiple times. Add addresses one by one, or click Batch Add to add them in batches. Separate multiple addresses with line breaks or commas (,).

    HTTPS is more secure than HTTP and is recommended.

    Playbacks

    This parameter is available only when Source Stream Type is set to Video path. You can loop the source video indefinitely or specify a fixed number of playbacks.

    Destination Ingest URL

    Destination ingest URL. Only the RTMP protocol is supported. The format is as follows:

    • rtmp://{Domain name}/{Application name}/{Stream name}
    • rtmp://{Domain name}/{Application name}/{Stream name}?{Streaming parameters}

  4. Click OK. The relay task is created.

Managing a Relay Task

  1. Log in to the Live console.
  2. In the navigation pane, choose Streaming > Relay. The Relay page is displayed, as shown in Figure 2.

    Figure 2 Relay page

  3. Perform the following operations on a relay task:

    • Viewing relay task details: Click View Details in the Operation column of the relay task. On the Relay Task Details page displayed on the right, view all configuration information about the current relay task.
    • Starting a task: Click Start in the Operation column of the relay task. You can start a task only after the task is paused.
    • Pausing a task: Click Pause in the Operation column of the relay task. You can pause a task only when its Source Stream Type is set to Video path and the task is running.
    • Modifying a task: Choose More > Modify in the Operation column of the relay task to modify the task. You can modify a task only when its Source Stream Type is set to Video path.
    • Viewing task monitoring information: Choose More > Monitor in the Operation column of the relay task. You can then view line charts for audio frame rate, video frame rate, audio bitrate, and video bitrate.
    • Deleting a task: Choose More > Delete in the Operation column of the relay task to delete the task.