Pushing and Streaming Content on a PC with Cloud Stream Live
Cloud Stream Live provides you with stable and efficient livestreaming capabilities. The following describes how to push streams and stream content on a PC using third-party software.
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.
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.
Pushing Streams
- Obtain an ingest URL.
- 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 5, 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 6 Settings
- On the left navigation pane, choose Output. Set Output Mode to Advanced and Keyframe Interval to 2.
Figure 7 Output mode
- In the navigation pane, choose Stream and enter the ingest URL obtained in 1.
Figure 8 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, huawei09.
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 9 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
- Obtain a streaming URL.
- Log in to the Live console. In the navigation pane, choose Domains.
- Click Manage in the Operation column of the desired streaming domain name. Obtain the streaming URL on the Basic Info page.
In the example shown in Figure 10, StreamName is user-defined and must be the same as StreamName in the ingest URL. Otherwise, the playback fails.
You can combine the streaming domain name with the supported protocols to obtain streaming URLs in the following formats:
- FLV: http://exampletest.huaweicloud.com/live/huawei09.flv
- M3U8: http://exampletest.huaweicloud.com/live/huawei09.m3u8
- RTMP: rtmp://exampletest.huaweicloud.com/live/huawei09
The domain name in the preceding figure is only an example. Use your own streaming domain name.
- Run VLC.
- On the menu bar, choose Media > Open Multiple Files.
- In the displayed dialog box, enter the streaming URL obtained in 1. Click Play.

Helpful Links
If you use your own domain names for livestreaming, you can configure the following functions before using Live:
- Transcoding: used to transcode a livestream in different specifications and play the content using a transcoded streaming URL
- Playback authentication: used to protect live resources
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.



