Last updated: 2020-03-04 18:04:06PDF
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.
- A new user needs to Register An account on the official website of Tencent Cloud. For detailed operations, see Registering with Tencent Cloud .
- 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
- 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.
Log in to the Cloud LVB console and enter [domain name Management] .
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.
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.
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:
- Log in to the Domain Name Management Console .
- Select the domain name to which you want to add CNAME, and click Resolution.
- Go to the domain name resolution page and click "add record".
- 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.
- 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
- Log in to the Cloud LVB console and select [domain name Management] .
- Click add Domain name, select the domain name type as Domain name Leasing, and click OK.
- 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.
- After the identity verification is passed, click "continue to complete Domain name Leasing" to enter the leased domain name addition page.
- Customize the domain name prefix of 4-9 digits or letters, and click "OK".
- The pop-up window prompts you to click "go to purchase" to enter the domain name rental resource pack purchase page.
- Select the package quota you want to buy, and click "Buy now".
- 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.comYou 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
- Select [accessibility] > [address Generator] Generate Push URL.
- Go to the address generator page and configure as follows:
- Select the generation type, for example: Push domain name.
- Select the Push domain name that you have added in the domain name management.
- Enter's custom stream name StreamName, for example:
- Select the address Expire time, for example:
- Click "generate address" to generate Push address.
- The structure of Push's address is as follows.
liveIs the default AppName,
txSecretFor the signature of Playback Push,
txTimeThe 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
After Push's success, he chose [flow Management] > [online streaming], check the address status of Push, and click "Test" online Playback to watch.
Select [accessibility] > [address Generator] Obtain the address of Playback and configure it as follows on this page:
- Select the generation type, for example: Playback domain name.
- Select the Playback domain name that you have added in the domain name management.
- Enter's address is the same as Push's address. StreamName, Playback's address
StreamNameTo contact Push's address
StreamNameOnly by being consistent can Playback correspond to the flow.
- Select the address Expire time, for example:
- Click "generate address" to generate Playback address.
You can use the following methods to test whether the LVB stream is normal Playback according to the business scenario:
- 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 .
- 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 .
- 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.
- 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.