Getting Started

Last updated: 2020-07-06 14:18:47

    This document describes how to get started with LVB. Before trying out LVB, we recommend that you read the Pricing Overview of LVB to get familiar with the billable items and prices and avoid confusions.

    Preparations

    1. Sign up for a Tencent Cloud account and complete identity verification.
    2. Go to the LVB service activation page, indicate your consent to the Tencent Cloud Service Agreement, and click Apply for Activation to activate the LVB service.

    Step 1. Add a domain name

    To use LVB, you should have at least two domain names, one as the push domain name, and the other as the playback domain name. Push and playback cannot use the same domain name.

    1. Prepare your own domain names. For domain names in Mainland China regions, ICP filing is required.
    2. Log in to the LVB Console, enter Domain Management, and click Add Domain.
    3. On the domain name adding page, select the domain name type, and click OK.
      • LVB provides a test domain name xxxx.livepush.myqcloud.com by default. You can use it for push testing, but we do not recommend using it as the push domain name for your real business.
      • After the domain name is added successfully, you can view its information in the domain name list in Domain Management. If you need to manage it, please see Domain Name Management.
      • For more information on LVB domain names, see Basic LVB Features.


    4. Once your domain name is added, the system will automatically assign it a CNAME domain name (suffixed with .liveplay.myqcloud.com), which cannot be accessed directly before you complete the CNAME configuration at your domain name service provider. After the configuration takes effect, LVB can be used properly. The following uses Tencent Cloud as the DNS service provider as an example to describe how to add a CNAME record:
    1. Log in to the Tencent Cloud Domain Name Service Console.
    2. Select the domain name for which you want to add a CNAME record and click Resolve.
    3. Enter the domain name resolution page and click Add Record.
    4. In the new column, enter the domain name prefix as the host record, select CNAME as the record type, and enter the CNAME domain name as the record value.
    5. Click Save.

    • After a CNAME record is successfully added, it generally takes some time to take effect. If the CNAME configuration fails, you cannot use LVB.
    • After the CNAME configuration succeeds, you can see that the status symbol of the CNAME address in Domain Management in the LVB Console has changed to .
    • If the CNAME configuration failure persists, consult your domain name registrar.
    • For more information on how to configure with other DNS service providers, please see CNAME Configuration.

    Step 2. Get a push address

    1. Log in to the LVB Console and select Auxiliary Tools > Address Generator to generate a push address.
    2. Enter the address generator page and configure as follows:
      1. Select Push domain as the type of generation.
      2. Select the push domain name you added in Domain Management.
      3. Enter a custom StreamName, such as liveteststream.
      4. Select the expiration time of the address, such as 2019-10-18 23:59:59.
      5. Click Generate Address to generate a push address.
    • The format of the push address is as follows: live is the default AppName, txSecret is the signature for playing back the stream, and txTime is the expiration time of the push address.
    • In addition to the above method, you can also select a push domain name in Domain Management in the LVB Console, click Manage, select Push Configuration, enter the expiration time of the push address and the custom StreamName, and click Generate Push Address to generate a push address.
    • You can create and configure a desired feature template before generating the push address based on your actual business needs and associate it with the push domain name. For prices of value-added features, please see Pricing Overview.

    Step 3. Push a live stream

    You can enter the generated push address into the corresponding push software according to your business scenario.

    • For push on PCs, we recommend push via OBS. For more information, please see Push via OBS.
    • For push on web, we recommend that you go to Auxiliary Tools > Web Push, select the push domain name, enter the custom StreamName, select the address expiration time, open the camera, and click Start Push.
    • For push on mobile devices, you can download and install Tencent Video Cloud Demo, open it, select MLVB > Camera Push, enter the push address into the address box manually or by scanning the QR code, and tap Start in the bottom-left corner to start push.

    Step 4. Get a playback address

    1. After push succeeds, select Stream Management > Online Streams, view the status of the push address, and click Test to play back the stream online.
    2. Select Auxiliary Tools > Address Generator to get a playback address and configure as follows:
      1. Select Playback domain as the type of generation.
      2. Select the playback domain name you added in Domain Management.
      3. Enter the same StreamName as that of the push address. The StreamName of the playback address must be the same as that of the push address to play back the corresponding stream.
      4. Select the expiration time of the address, such as 2019-10-13 23:59:59.
      5. Click Generate Address to generate a playback address.

    3. You can use the following methods to test whether a live stream can be played back normally based on your business scenario:
      1. For stream test on PCs, we recommend using tools such as VLC. For more information, please see LVB Playback.
      2. For stream test on web, we recommend using TCPlayerLite in the Player SDK. For more information, please see LVB Playback.
      3. For stream test on mobile devices, we recommend that you download and install Tencent Video Cloud Demo, open it, select MLVB > LVB Pull, enter the playback address into the address box manually or by scanning the QR code, and tap *Play in the bottom-left corner to start watching.

    Relevant Operations

    • To enable LVB recording, create a recording template and associate it with a domain name. For more information, please see Recording Configuration.
    • To enable LVB transcoding, create a transcoding template and associate it with a domain name. For more information, please see Transcoding Configuration.
    • To enable LVB watermark, create a watermark template and associate it with a domain name. For more information, please see Watermark Configuration.
    • To enable LVB screencapture and porn detection, create a screencapture and porn detection template and associate it with a domain name. For more information, please see Screencapture and Porn Detection Configuration.
    • To enable LVB stream mixing, call the stream mixing API. For more information, please see CreateCommonMixStream.

    FAQs

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help