Getting started

Last Updated: Sep 26, 2017

Step 1: Preparations

Prerequisite

  • A domain name that has completed the website record-filing formalities.

    Alibaba Cloud provides live video service.

  • Streaming and playing tools.

    To begin a live activity, you need streaming tools to upload the live video, and playing tools to pull the live video. Alibaba Cloud provides streaming Demo at Web end and player. You can perform the streaming and playing operations by use of Demo.

Operations

  1. Log on to the Live Video console.

    The console will check the activation status of services on which the product is dependent. Follow the instructions on the page for operations.

  2. Add a live video domain name.

    1. Select the desired region, and click Add New Domain.

      1

    2. Enter the Live domain name, and click Next step.

      域名

      1

    • The domain name for live video should complete the ICP record filing formalities before it is ready for use. Domain names that haven’t completed the formalities should file an application for ICP record filing. Refer to Record Filing Process.

    • Configured successfully, the domain name will automatically complete the configuration of CDN live acceleration. The live acceleration is available after the domain name complete the CNAME binding.

  3. CNAME binding.

    Modify the DNS, CNAME record of the live video domain name you added to the CNAME address displayed on the live video domain name management details page. We need to bind the streaming address that Alibaba Cloud provides with the live video domain name, so that the stream is pushed to our live video center when it is pushed to the live video domain name. Follow the steps below to bind the CNAME address of the domain name.

    • The live video domain name applied for at www.net.cn.

    1. Get the CNAME corresponding to the live video domain name of the Live Video console.

      3

    2. Log on to the page of Domain Name List on the Domain console, select the domain name that needs binding, and click Resolve.

      2

    3. Click Configure.

      配置

    4. Click Add Record.

      2

    5. Enter the resolution parameters and click Confirm.

      2

      • Select CNAME in Type.

      • Enter secondary domain name of the streaming address in Host. For example, if the streaming address is document4.aliyun.com, then the secondary domain name is document4.

      • Enter the content of CNAME in the domain name list in Value.

      The resolution normally will take effect very soon.

      • If it is a newly created domain name, the resolution won’t involve DNS refreshing.
      • If the Cname is changed, there will be cached data on different DNSs, and it may take a maximum of 48 hours to finish the updates.
    • The domain name applied for in other ways.

      • If the domain name is applied in other ways, perform CNAME binding at the website at which the domain name is added.

      • Perform domain name transfer on Alibaba Cloud console.

  4. Configure authentication.

    1. Log on to the Live Video console.

    2. Click Domains.

    3. Select the desired region.

    4. Select the desired domain name.

    5. Click Detail on the right side of the selected Domain Name.

      2

    6. Click Authenticate to go to the authentication configuration page.

      2

    7. Open the authentication button.

      2

    8. Enter the Main KEY and Standby KEY and click OK.

      2

      Note:

      • Main KEY is a key for calculating encrypted string, and is a must.
      • If the main KEY is changed, all the address using the main KEY will become invalid instantly. If the standby KEY is changed as the main KEY, the streaming or playback address using the main KEY will not become invalid instantly, but uses the standby KEY as a bridge for changing.
    9. Enter Stream URL in Authentication URL Calculator.

      You can get Stream Information in Base Information.

      rtmp://video-center.alivecdn.com/AppName/StreamName?vhost=document4.aliyun.com

      Notice

      • The video-center.alivecdn.com is a server of the live video center and can be customized. For example, your domain name is document4.aliyun.com (Note: This domain cannot be the same as your live video CDN domain name). You can set DNS and point your domain name CNAME to “video-center.alivecdn.com”.
      • AppName is the app name. This parameter can be customized or changed.
      • StreamName is the stream name. This parameter can be customized or changed.
      • The “vhost” parameter specifies a domain name for eventual playback on an edge node, namely your live video CDN domain name.

        Note: If you want to used customized AppName and StreamName, you need to change the AppNameand StreamName in the streaming address into AppName and StreamName before generating authenticated URL.

      2

      2

    10. Enter main KEY and standby KEY required in authentication.

    11. Enter expire time of the stream URL. The authentication will become invalid in the excess of the expire time.

    12. Click Generate, and the encrypted Auth URL will be generated.

    13. Go to Domains > Base Information page, and get the play information.

      4

Step 2: Streaming

The live video streaming operation can use third-party streaming software.

Step 3: Playing

  • Playing in Demo experience room

    Copy the playing address to the pull streams player.

  • Preview directly at the backstage of the Web page

    1. Use OBS to stream by using authenticated URL, and then log on to the Live Video console > Streams.

    2. Select the desired region.

    3. Select the desired domain name.

    4. Select the desired stream status.

    5. Select the desired address, and click Address at the right side in which you can check playback address and play.

      3

      2

  • Preview by use of VLC

    Download VLC. We perform default installation and extra configuration is not necessary. Click Media > Open Network Stream, enter the playback address, and click Play.

Thank you! We've received your feedback.