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

Generate URLs for co-streaming by using the console

  1. Log on to the ApsaraVideo Live console.
  2. In the left-side navigation pane of the ApsaraVideo Live console, choose Tools > URL Generators. Then, click the Co-streaming URL Generator tab.
  3. Under Co-streaming, configure the parameters that are described in the following table.
    Co-streaming URL generator
    ParameterDescription
    Co-streaming ApplicationSelect a co-streaming application from the Co-streaming Application drop-down list.
    Streaming DomainSelect 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 IDThe 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 StreamerThe 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-streamerThe 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 StreamerRoom ID of Streamer AThe 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 AThe 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 BThe 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 BThe 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 (=).

    AppNameThe name of the application used for co-streaming. The default value live is used.
    Validity PeriodThe validity period of the URLs. The validity period cannot be more than 24 hours.
  4. Click Generate URLs to generate the ingest and streaming URLs of streamers and co-streamers and the CDN streaming URLs of viewers.
    Generate URLs
Note Tokens in the ingest and streaming URLs of streamers and co-streamers 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.