When you need to distribute live streams from ApsaraVideo Live to third-party platforms or across streaming domains, live center stream relay forwards ingested streams to specified destination ingest URLs while preserving media processing configurations.
How it works
After a stream is ingested to the live center, the live center forwards it to a specified third-party ingest URL. Media processing configurations such as transcoding, recording, and snapshot capture can apply to relayed streams.
Use cases
-
Third-party platform integration: Relay live streams from ApsaraVideo Live to a third-party platform for broadcasting.
-
Cross-domain stream relay: Relay streams between different streaming domains. For example, relay a stream ingested to streaming domain A so that it becomes accessible through streaming domain B.
Limitations
-
Each streaming domain supports up to 200 destination URLs. After the limit is reached, no more destination URLs can be added. To increase the quota, submit a ticket.
-
Only live streams that are ingested over Real-Time Messaging Protocol (RTMP) and Secure Reliable Transport (SRT) can be relayed from a live center.
Billing
Stream relay incurs charges. For details, see Billing of live center stream relay.
Create a relay template
Prerequisites
-
An ApsaraVideo Live streaming domain
-
A valid destination ingest URL in RTMP or SRT format
Steps
-
Log on to the ApsaraVideo Live console.
-
In the left navigation pane, click Domain Names. The Domain Management page appears.
-
On the Domain Management page, find the target streaming domain and click Domain Settings in the Actions column.
-
In the left-side navigation tree, choose .
-
Click Add to create a relay template. Configure the following parameters:

Parameter
Description
AppName
The name of the application to which the live stream belongs. This value is case-sensitive.
StreamName
The name of the live stream. To relay a transcoded stream, set this to the stream name followed by
_Transcoding template ID. You must also configure the transcoding template to trigger transcoding on stream ingest.Destination URL
The relay destination URL. Each template supports one destination URL. To relay to multiple destinations, create additional templates. The destination URL protocol must match the live stream protocol. Only RTMP and SRT URLs are supported. The URL must be complete.
Start and End Time
The relay period. The interval between the start and end time must be less than seven days. The end time must be later than the current time.
-
Click OK.