This document shows you how to get started with LEB. Before using LEB, please read Pricing Overview to learn about its billable items and prices.
- After activating CSS, you will get 20 GB of playback traffic for the Chinese mainland for free.
- The steps to configure domain names for LEB are the same as those for LVB. If you are already using LVB, you can skip to Step 4. Get a playback URL.
To use CSS, you should have at least one push domain name and one playback domain name. You cannot use one domain name for both push and playback.
You can add your own domain names with ICP filing numbers.
Register your domain name. ICP filing is required if you want to use the domain in the Chinese mainland.
Log in to the CSS console and go to Domain Management.
Click Add Domain.
- CSS provides a test domain name
xxxx.livepush.myqcloud.com. You can use it to test push, but we do not recommend using it for business purposes.
- After the domain name is added successfully, you can view its information in the domain name list in Domain Management. For information on how to manage your domains, see Domain Management.
- For more information on domain names for live streaming, see Live Streaming Basics.
Once your domain name is added, the system will assign it a canonical name (suffixed with
.tlivepush.com), which cannot be accessed before you complete CNAME configuration at your DNS service provider. The following example shows you how to add a CNAME record if you use Tencent Cloud’s DNS service:
- It takes a while for CNAME configuration to take effect. You can use CSS only after it does.
- After the CNAME configuration takes effect, you will see the icon before the CNAME address in Domain Management.
- If your CNAME configuration fails to take effect, please contact your DNS provider.
- For how to add CNAME records with other DNS providers, see Configuring CNAME for Domain Name.
StreamName, such as
- The default value of
txSecretis the signature for playing, and
txTimeis the URL expiration time.
- Here is another way to generate a push URL: In Domain Management, find the domain name you want to use for push and click Manage. Under Push Configuration, enter an expiration time for the URL and a custom
StreamName, and click Generate Push Address.
- Based on your needs, before generating a push URL, you can create templates and bind them to your push domain. For the prices of CSS value-added services, see Pricing Overview.
To start pushing, provide the push URL generated to the software you use for push.
StreamName, select a URL expiration time, and click Confirm. Turn the camera on, and click Start Push.
- You can also integrate the MLVB SDK into your app to implement the push feature.
- The LEB solution for web does not support decoding or playing B-frames. For details, see B-Frames.
After push succeeds, select Stream Management > Live Streams, view the status of the push URL, and click Preview to play the stream.
Go to CSS Toolkit > Address Generator and complete the following settings:
StreamNamein the push URL.
You can use the following methods to test playback in different scenarios:
On web: Use WebRTC Live Demo to play the stream.
- WebRTC Live Demo supports multi-definition playback. You can create a transcoding template for HD and SD output in Feature Configuration > Live Transcoding in the CSS console, enter in the demo a WebRTC URL containing the transcoding template, and play it. If you don't need to test this feature, enter the original WebRTC URL.
- For more information on live transcoding and its billing, see Live Transcoding.
On mobile devices: Download and install TCToolkit. After it is installed, open it, go to Live broadcast > LEB Player, enter the playback URL manually or scan the QR code to get the URL, and tap Start Playback.
If you want to play the stream in your app, you can integrate the MLVB SDK. For questions, see FAQs.
LEB solution for mobile devices: This solution supports B-frame decoding and AAC and has been integrated into the MLVB SDK.
The format of LEB URLs is the same as that of LVB URLs except that the former start with
webrtc while the latter start with
LEB playback URL format:
webrtc://domain/path/stream_id?txSecret=xxx&txTime=xxx (hotlink protection enabled). For how to generate a playback URL, see Get the playback URL.
You can use URLs of transcoded streams to play at different resolutions and bitrates. For how to generate a playback URL for a transcoded stream, see Live Remuxing and Transcoding.
The LEB solution for web does not support decoding or playing B-frames. If a stream contains B-frames, the backend will remove them in transcoding, which will increase latency and incur transcoding fees. Please avoid pushing streams with B-frames or use streaming software such as OBS to remove them by adjusting the video encoding parameters. The figure below shows how to remove B-frames using OBS:
Playback using browsers only supports the standard WebRTC protocol and does not support AAC. If a stream pushed contains audio in AAC format, the system will transcode the audio into Opus format, which will incur audio transcoding fees.