All Products
Search
Document Center

ApsaraVideo Live:Co-streaming URL generator

Last Updated:Sep 09, 2024

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, choose Toolbox > URL Generators.

  3. 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.

  4. Click Generate URLs to generate the ingest and streaming URLs of streamers and co-streamers and the CDN streaming URLs of viewers.

    生成地址

Note

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.