Pushing and Streaming Content on a PC with Low Latency Live
LLL reduces the E2E latency to milliseconds and is more adaptable to poor network conditions. It is suitable for scenarios that require low latency and good content synchronization. You can enter the generated ingest URL to the corresponding streaming software for stream push on LLL. Then, you can use the Huawei Cloud LLL online demo or API to play video on a web client.
Prerequisites
- You have registered a HUAWEI ID, enabled Huawei Cloud services.
- Domain names for Live are available. Live requires an ingest domain name and a streaming domain name, and the two domain names must be different.
- The price of livestreaming outside the Chinese mainland is different from that within the Chinese mainland. For details, see Pricing Details.
- You have installed a streaming tool (recommended: Open Broadcaster Software). If you have not installed it yet, download and install it.
- You have obtained the Huawei Cloud LLL online demo or called an API to play video on a web client.
- Contact Huawei Cloud technical support and to obtain the login address of the LLL console.
Adding Domain Names
Add your ingest and streaming domain names to Live. The following describes how to add an ingest domain name. The procedure for adding a streaming domain name is the same.
- Log in to the Live console.
- In the navigation pane, choose .
- Click Add Domain. The Add Domain page is displayed on the right, as shown in Figure 1.
For details about parameter settings, see Table 1.
Table 1 Domain name parameters Parameter
Example
Description
Domain name
test-push.example.com
Enter a second-level ingest domain name.
If the message "Verify the domain ownership first" is displayed after you enter the domain name, click View Verification Methods on the right and handle the problem by referring to Verifying Domain Name Ownership.
Enterprise Project
-
Retain the default value default.
Subservice Type
Cloud Live
Select a subservice type of Live.
Type
Ingest domain name
Select a domain name type.
Live Origin Server
EU-Dublin
Select the region where the live origin server is located. The ingest domain name must be in the same region as the streaming domain name.
Service Area
You do not need to set this parameter when adding an ingest domain name. When you add a streaming domain name, set this parameter to Europe.
Select the region where your streaming domain name is accelerated.
Supported Protocol
You do not need to set this parameter when adding an ingest domain name. When adding a streaming domain name, set this parameter to FLV+RTMP+RTC.
Select the streaming protocols supported by your streaming domain name.
- Click OK. A domain name record is added to the Domains page.
Wait for about 3 to 5 minutes. When Status changes to Normal, the domain name is added.
- Repeat step 1 to step 4 to add your streaming domain name.
Associating Domain Names
Associate the ingest domain name with the streaming domain name so that you can push streams and play live video.
- Log in to the Live console.
- In the navigation pane, choose .
- Locate the target streaming domain name, and click Manage in the Operation column.
The Basic Info page is displayed.
- In the Ingest Info area, click Associate Ingest Domain and select the added ingest domain name.
Figure 2 Associating domain names
- Click OK.
After the association is complete, you can view the stream ingest information.
Figure 3 Ingest Info
Configuring CNAME Records
After domain names are added, a CNAME domain name is assigned to the ingest domain name and streaming domain name, respectively. Log in to the Live console and view the domain names on the page, as shown in Figure 4.
Then, configure the CNAME records at the DNS service provider. For details, see Configuring CNAME Records. After the CNAME records take effect, all requests to your ingest domain name and streaming domain name are redirected to Huawei Cloud CDN nodes, enabling faster livestreaming.
Enabling HTTPS Secure Acceleration
You need to enable HTTPS secure acceleration for streaming domain names to ensure that your live content is encrypted during transmission.
- Log in to the Live console.
- In the navigation pane, choose .
- Click Manage in the Operation column of the desired streaming domain name.
- In the navigation pane, choose Templates > HTTPS Certificates.
- Click Create. The page for creating certificate settings is displayed, as shown in Figure 5.
- Click Add Certificate. The settings of certificate 1 are displayed, as shown in Figure 6.
The following describes how to add an international standard self-owned certificate. For details about parameter settings, see Table 2.
Table 2 Parameters Parameter
Example
Description
Certificate Standard
International
Select a certificate standard.
Certificate Source
My certificate
Select a certificate source. The self-owned certificate must be obtained from a compliant channel.
International > My certificate
-
Open the obtained certificate file and private key file using a text tool, and copy certificate body and private key content to the corresponding text boxes.
Certificates issued by different organizations have the following differences:- If your certificate is issued by the root CA, the certificate is a complete certificate. Copy the certificate content.
Figure 7 HTTPS certificate
- If your certificate is issued by an intermediate CA, the certificate file contains multiple certificates. You need to combine all the certificates into a single certificate. For details, see Certificates Issued by Intermediate CAs.
- If your certificate is issued by the root CA, the certificate is a complete certificate. Copy the certificate content.
- Verify whether HTTPS secure acceleration has taken effect.
Use an HTTPS streaming URL to play a video. If the playback is successful, HTTPS secure acceleration has taken effect.
Pushing Streams
Open Broadcaster Software (OBS) is used as an example.
- Obtain an ingest URL of LLL.
- Log in to the Live console. In the navigation pane, choose Domains.
- Click Manage in the Operation column of the desired ingest domain name. Obtain the ingest URL on the Basic Info page.
In the example shown in Figure 8, StreamName is user-defined, for example, rtmp://livepush-test.huaweicloud.com/live/huawei09.
The domain name in the preceding figure is only an example. Use your own ingest domain name.
- Run OBS and click Settings in the lower right corner.
Figure 9 Settings
- In the navigation pane, choose Output.
Configure the following parameters as required and retain the default values for other parameters.
- Set Output Mode to Advanced.
- Set Rate Control to ABR.
- Set Bitrate to 2000 Kbps.
- Set Keyframe Interval to 1.
- Set CPU Usage Preset to ultrafast.
- Set Profile to baseline.
- Set Tune to zerolatency.
LLL does not push streams that contain B-frames. Therefore, you need to disable B-frames on OBS streaming devices.
Figure 10 Output mode
- In the navigation pane, choose Stream and enter the ingest URL obtained in 1.
Figure 11 Livestreaming settings
An ingest URL consists of the following two parts:- Server: Enter the part from the beginning of the ingest URL to the AppName, for example, rtmp://livepush-test.huaweicloud.com/live/.
- Stream Key: Enter the part from the StreamName to the end of the ingest URL, for example, huawei01.
The parameter names on the GUI may vary depending on the OBS version, but the rules for configuring the parameters are the same.
- Click OK.
- Right-click + in the lower left part of the Sources area to add a stream source.
Figure 12 Source settings
- Media Source indicates a local media file.
- Video Capture Device indicates a camera. If a camera is available on the PC, the camera is directly enabled.
- Click Start Streaming in the lower right corner.
Streaming Content (on a Web Client)
- Log in to the Live console. In the navigation pane, choose Domains.
- Click Manage in the Operation column of the desired streaming domain name. On the basic information page displayed, obtain the streaming URL.
StreamName is user-defined and must be the same as the value of StreamName in the ingest URL. Otherwise, the playback fails.
Example of an assembled streaming URL:
webrtc://exampletest.huaweicloud.com/live/huawei09
exampletest.huaweicloud.com indicates the configured LLL domain name.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.




