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
- A co-streaming application is created. For more information, see Create a co-streaming 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 a domain name. For more information about how to associate a streaming domain with an ingest domain, see Bind a stream pushing domain to a streaming domain.
Generate URLs for co-streaming by using the console
- Log on to the ApsaraVideo Live console.
- In the left-side navigation pane of the ApsaraVideo Live console, choose . Then, click the Co-streaming URL Generator tab.
- Under Co-streaming, 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.
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.