Updated on 2026-01-09 GMT+08:00

Assembling a Streaming URL

After domain names are configured, you can assemble a streaming URL and play the video through the URL. You can also use the tool to quickly generate a signed URL of the streaming domain name.

Prerequisites

  • The ingest domain name and streaming domain name have been added and associated.
  • You have configured CNAME records at your domain names' DNS provider.
  • To prevent unauthorized access to livestreams, Huawei Cloud Live provides URL validation to encrypt and authenticate the streaming URL. If necessary, configure URL validation and play the video through the signed URL. For details about how to configure URL validation, see URL Validation.
  • You can transcode livestreams into multiple video renditions at different resolutions and bitrates to meet a broad range of requirements. If necessary, configure a transcoding template, and then use the transcoded streaming URL to play live video.

Procedure

  1. Log in to the Live console.
  2. In the navigation pane, choose Domains.
  3. Click Manage in the Operation column of the desired streaming domain name. On the displayed page, you can view streaming information.

    Streaming URLs are provided based on the protocols supported by the streaming domain name, as shown in Figure 1. If a streaming domain name supports FLV, RTMP, and RTC, the corresponding streaming URLs are generated.
    Figure 1 Viewing the streaming URLs
    • You need to customize StreamName to generate a streaming URL. For details, see Original Streaming URL.
    • If URL validation is configured, you need to generate a signed streaming URL by referring to URL Validation.
    • To generate a signed streaming URL for the transcoded stream, you need to add _transcoding template ID to the end of StreamName in the original streaming URL to generate a new StreamName, generate new authentication parameters by referring to URL Validation, and assemble the streaming URL of the transcoded stream.

Original Streaming URL

Assembling rules

  • Cloud Stream Live
    You can play FLV, M3U8, and RTMP streams.
    RTMP format: rtmp://Streaming domain name/AppName/StreamName
    FLV format: http://Streaming domain name/AppName/StreamName.flv
    M3U8 format: http://Streaming domain name/AppName/StreamName.m3u8
  • LLL
    You can only play WebRTC streams.
    webrtc://Streaming domain name/AppName/StreamName

Parameters in the example:

  • Streaming domain name is the one you added on the Live console.
  • AppName: application name. The default value is live. You can customize the application name. Only letters, digits, underscores (_), and hyphens (-) are allowed.
  • StreamName: livestream name. Multiple livestreams can be created for each application. You can customize the stream name.

    A stream name can contain 1 to 512 characters. The recommended length is 12 to 256 characters. Only digits, letters, hyphens (-), underscores (_), asterisks (*), and slashes (/) are allowed. Digits and letters are recommended. If you set the stream name to an asterisk (*), all livestreams of the application will share one streaming URL.

Examples

  • Cloud Stream Live

    If the added streaming domain name is test-play.example.com, AppName is livetest, and StreamName is huawei1, the assembled streaming URL is:

    RTMP format: rtmp://test-play.example.com/livetest/huawei1
    FLV format: http://test-play.example.com/livetest/huawei1.flv
    M3U8 format: http://test-play.example.com/livetest/huawei1.m3u8
  • LLL

    If the added streaming domain name is test-play.example.com, AppName is livetest, and StreamName is huawei1, the assembled streaming URL is:

    webrtc://test-play.example.com/livetest/huawei1

Signed Streaming URL

If URL validation is enabled, you must generate a signed streaming URL based on obtained authentication information and stream your content through the signed URL. For details, see URL Validation.

Transcoded Streaming URL

If you have configured transcoding, you must assemble a transcoded streaming URL. The URL needs to be set differently when URL validation is enabled or disabled.

Assembling rules

Add _Transcoding template ID to the end of the StreamName field in the original streaming URL and signed streaming URL.

  • Cloud Stream Live
    RTMP format: rtmp://Streaming domain name/AppName/StreamName_Transcoding template ID
    FLV format: http://Streaming domain name/AppName/StreamName_Transcoding template ID.flv
    M3U8 format: http://Streaming domain name/AppName/StreamName_Transcoding template ID.m3u8
  • LLL
    webrtc://Streaming domain name/AppName/StreamName_Transcoding template ID

Transcoding template ID: ID of the template used for livestream transcoding. The ID of a custom transcoding template can be customized. To obtain a transcoding template ID, access the Live console and switch to the Domains page, locate the desired ingest domain name, and click Manage in the Operation column. On the displayed page, choose Templates > Transcoding.

Examples

If the original streaming URL is http://test-play.example.com/livetest/huawei1.flv and transcoding template ID is 110:
  • The transcoded streaming URL is as follows when URL validation is disabled:
    • Cloud Stream Live
      http://test-play.example.com/livetest/huawei1_110.flv
    • LLL
      webrtc://test-play.example.com/livetest/huawei1_110
  • The transcoded streaming URL is as follows when URL validation is enabled:
    • Cloud Stream Live
      http://test-play.example.com/livetest/huawei1_110.flv?auth_info=z6uwSWUceM2%2FZeDpc2LqjhEFhhXpjQ5IQJhrLoIARQ2%2Bn%2BJV4DrzGRqXxWxMLQBU.44393135353831414132454633374139
    • LLL
      webrtc://test-play.example.com/livetest/huawei1_110?auth_info=z6uwSWUceM2%2FZeDpc2LqjhEFhhXpjQ5IQJhrLoIARQ2%2Bn%2BJV4DrzGRqXxWxMLQBU.44393135353831414132454633374139

    For details about how to generate authentication information, see Signed Streaming URL.