Getting Started

Last updated: 2020-03-04 18:04:06

PDF

This tutorial will guide you to quickly understand the cloud LVB service. Before you try cloud LVB service, it is recommended that you read cloud LVB in advance Price overview , clear Charging item and Price To avoid misunderstandings.

Preparations

  1. A new user needs to Register An account on the official website of Tencent Cloud. For detailed operations, see Registering with Tencent Cloud .
  2. Enter Tencent Cloud LVB Service Enable Page Check and agree to "Tencent Cloud serves Protocol", and click "apply for Enable" to serve Enable Yun LVB.

After successfully applying for Enable, cloud LVB service will be given to 20GB domestic Playback Traffic for free experience. In order to avoid giving Traffic automatic deduction after use, resulting in in arrears being unable to use Cloud LVB service, it is recommended that you according to the actual business needs, [purchase] A package of corresponding specifications.

Step 1. Adding 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.
You can add ICP filing's own domain name by using [own domain name], or you can use [Domain name Leasing] after identity verification to lease the Playback domain name provided by Tencent Cloud to quickly experience and use LVB service.

Add your own domain name

  1. Prepare your own domain name and complete the domain name ICP filing.
    • If you need to purchase a domain name, you can go to [Tencent Cloud Domain Service] to complete it. Domain name purchase . You can also go to other domain name service providers to purchase.
    • If your domain name is not completed, ICP filing, you can go to Tencent Cloud's ICP Filing Registration to complete ICP License Application .

According to the regulations of the Ministry of Industry and Information Technology, the domain name must be ICP filing, and the length of ICP filing needs several business day, it is recommended that you proceed ahead of time. It takes about 1 day for the successful domain name of the new ICP filing to be synchronized to the Tencent Cloud server. When you add this kind of domain name, it may show that the domain name is not ICP filing.

  1. Log in to the Cloud LVB console and enter [domain name Management] .

  2. Click add Domain name, select the domain name type as Private Domain name, and click OK to enter the add page of your own domain name.

  3. Enter has completed ICP filing's domain name. Select the domain name type and click "OK".

    After the addition is successful, the system will automatically give you a CNAME domain name Assign, but the CNAME domain name cannot be directly Access. You need to complete the CNAME configuration at the domain name service provider. After the configuration takes effect, you can enjoy Cloud LVB service.

  4. CNAME the domain name resolution address to the CNAME address of the corresponding domain name in the domain name list in the cloud LVB console. Taking DNS service provider Tencent Cloud as an example, the steps to add CNAME records are as follows:

    1. Log in to the Domain Name Management Console .
    2. Select the domain name to which you want to add CNAME, and click Resolution.
    3. Go to the domain name resolution page and click "add record".
    4. In the new column, the Enter domain name is prefixed with the host record, and the record type is CNAME, Enter CNAME domain name as the record value.
    5. Click "Save" to add a CNAME record.
  • 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 domain name CNAME is successful, in the Cloud LVB console [domain name Management] The CNAME address status symbol of the visible domain name in the list becomes .
    • If the CNAME configuration failure persists, consult your domain name registrar.
  • If you use other DNS service providers, for more operations, see CNAME Configuration .

Add leased domain name

  1. Log in to the Cloud LVB console and select [domain name Management] .
  2. Click add Domain name, select the domain name type as Domain name Leasing, and click OK.
  3. Go to the domain name rental identity verification page, click upload handheld ID card photo, enter ID card number and name, and click OK to submit identity verification.
  4. After the identity verification is passed, click "continue to complete Domain name Leasing" to enter the leased domain name addition page.
  5. Customize the domain name prefix of 4-9 digits or letters, and click "OK".
  6. The pop-up window prompts you to click "go to purchase" to enter the domain name rental resource pack purchase page.
  7. Select the package quota you want to buy, and click "Buy now".
  8. After the payment is successful, return to the domain name lease add page, and click purchase completed to successfully add the leased domain name.
  • For the first time to use domain name leasing, it is recommended to complete the identity verification before purchasing the resource package, so as to avoid being unable to use the rental resource package due to the failure of identity verification.
  • Cloud LVB provides test domain name by default xxxx.livepush.myqcloud.com You can use this domain name for Push testing, but it is not recommended that you use this domain name as Push's domain name in your official business.
  • After the domain name is added successfully, you can use the [domain name Management] The list of domain names to view domain name information. If you need to manage the domain name that has been successfully added.

Step 2: get Push's address

  1. Select [accessibility] > [address Generator] Generate Push URL.
  2. Go to the address generator page and configure as follows:
    1. Select the generation type, for example: Push domain name.
    2. Select the Push domain name that you have added in the domain name management.
    3. Enter's custom stream name StreamName, for example: liveteststream .
    4. Select the address Expire time, for example: 2019-10-18 23:59:59 .
    5. Click "generate address" to generate Push address.
  • The structure of Push's address is as follows. live Is the default AppName, txSecret For the signature of Playback Push, txTime The valid time for Push's address.
  • In addition to the above methods, you can also click in the cloud LVB console [domain name Management] Select the Push domain name, click "manage", select "Push configuration", enter the Expire time of Push address and the custom stream name StreamName, click "generate Push address" to generate Push address.
  • You can configure and create the corresponding Push address before generating the address according to the actual business needs. [ Function template] (https://intl.cloud.tencent.com/document/product/267/34223, and Associate to push the basin name. For the price of value-added features, see Price overview .

Step 3. View live broadcasting

You can input the generated Push address into the corresponding Push software according to the business scenario.

  • Push on PC. It is recommended to use OBS Push. For more information, please see OBS Push .
  • Push on Web, it is recommended to use [Auxiliary tools] > [Web Push] Select the domain name you need for Push, the stream name customized by Enter, StreamName, select the address Expire time, turn on the camera, and click start Push.
  • Mini Program Push, search for Mini Program through Wechat Tencent Video Yun Select [RTMP Push], fill in Push's address, and click "start" to start Push.
  • Push on mobile, download and install Tencent Video Cloud Demo, open and select [MLVB] > [camera Push], manually enter or scan the QR code to enter Push's address into the address editing box, and click the start button in the lower left corner to start Push.

Customized App can integrate MLVB SDK provided by Tencent Cloud to realize your Push function.

Step 4: get Playback's address

  1. After Push's success, he chose [flow Management] > [online streaming], check the address status of Push, and click "Test" online Playback to watch.

  2. Select [accessibility] > [address Generator] Obtain the address of Playback and configure it as follows on this page:

    1. Select the generation type, for example: Playback domain name.
    2. Select the Playback domain name that you have added in the domain name management.
    3. Enter's address is the same as Push's address. StreamName, Playback's address StreamName To contact Push's address StreamName Only by being consistent can Playback correspond to the flow.
    4. Select the address Expire time, for example: 2019-10-18 23:59:59 .
    5. Click "generate address" to generate Playback address.
  3. You can use the following methods to test whether the LVB stream is normal Playback according to the business scenario:

    1. LVB stream test on PC. It is recommended that you use VLC and other tools for Playback experience. For more information, please see Playback's practice .
    2. For Playback test on Web, it is recommended that you choose the TCPlayerLite player in the player SDK for Playback. For more information, please see LVB Playback .
    3. Mini Program LVB flow test, it is recommended that you search Mini Program through Wechat Tencent Video Yun Select [LVB Playback], scan the QR code of LVB's address, and click the Playback button in the lower left corner, Playback to watch.
    4. For LVB streaming test on mobile, it is recommended that you download and install Tencent Video Cloud Demo to open and select [MLVB] > [LVB pull], manually enter or scan the QR code to enter Playback's address into the address editing box, and click the Playback button in the lower left corner, Playback to watch.

If you need to perform Push / Playback in App or Mini Program, you can integrate MLVB SDK with Cloud LVB service. If you encounter problems during the trial, it is recommended that you read Cloud LVB FAQs Answer questions.

FAQs