This topic describes how to use the co-streaming URL generator in the ApsaraVideo Live console to generate the ingest and streaming URLs of streamers and co-streamers and the CDN streaming URLs of viewers.
Prerequisites
An ApsaraVideo Real-time Communication (ARTC) application is created. For more information, see Create an ARTC application.
A streaming domain is added, and the streaming domain is associated with an ingest domain. For more information about how to add a streaming domain, see Add an accelerated domain name. For more information about how to associate a streaming domain with an ingest domain, see Associate a streaming domain with an ingest domain.
Generate URLs for co-streaming by using the console
- Log on to the ApsaraVideo Live console.
In the left-side navigation pane, choose .
Click the Co-streaming URL Generator tab, and then configure the parameters that are described in the following table.
Parameter
Description
Co-streaming Application
Select a co-streaming application from the Co-streaming Application drop-down list.
Streaming Domain
Select a streaming domain from the Streaming Domain drop-down list.
Type
Streamer Co-streaming with Viewer (Co-streamer): The streamer co-streams with a co-streamer.
Streamer Co-streaming with Streamer: The streamer co-streams with another streamer.
Streamer Co-streaming with Viewer (Co-streamer)
Room ID
The custom room ID. The ID can be up to 64 characters in length and can contain digits, letters, hyphens (-), underscores (_), and equal signs (=).
User ID of Streamer
The user ID of the streamer. The ID can be up to 64 characters in length and can contain digits, letters, hyphens (-), underscores (_), and equal signs (=).
User ID of Co-streamer
The user ID of the co-streamer. The ID can be up to 64 characters in length and can contain digits, letters, hyphens (-), underscores (_), and equal signs (=).
Streamer Co-streaming with Streamer
Room ID of Streamer A
The custom room ID of Streamer A. The streamers must use different room IDs.
The ID can be up to 64 characters in length and can contain digits, letters, hyphens (-), underscores (_), and equal signs (=).
User ID of Streamer A
The custom user ID of Streamer A. The streamers must use different user IDs.
The ID can be up to 64 characters in length and can contain digits, letters, hyphens (-), underscores (_), and equal signs (=).
Room ID of Streamer B
The custom room ID of Streamer B. The streamers must use different room IDs.
The ID can be up to 64 characters in length and can contain digits, letters, hyphens (-), underscores (_), and equal signs (=).
User ID of Streamer B
The custom user ID of Streamer B. The streamers must use different user IDs.
The ID can be up to 64 characters in length and can contain digits, letters, hyphens (-), underscores (_), and equal signs (=).
AppName
The name of the application used for co-streaming. The default value live is used.
Validity Period
The validity period of the URLs. The validity period cannot be more than 24 hours.
Click Generate URLs to generate the ingest and streaming URLs of streamers and co-streamers and the CDN streaming URLs of viewers.
Tokens in ingest and streaming URLs of the streamer and co-streamer that are generated by using the console are temporary, and are usually used for testing. If you need ingest and streaming URLs that are used for business purposes, construct the URLs by using the concatenation rules for security reasons.
Construct URLs for co-streaming by using the concatenation rules
You can also use the concatenation rules to construct the ingest and streaming URLs of streamers and co-streamers and the CDN streaming URLs of viewers. For more information, see URLs for co-streaming.