Pushing Streams and Streaming Content on a PC
This section describes how to push streams and stream content on a PC using the third-party software.
Prerequisites
- You have configured an ingest domain name and a streaming domain name on the Live console by referring to Adding Domain Names.
- You have created a channel by referring to Creating a Channel.
- You have installed a streaming tool (recommended: Open Broadcaster Software). If you have not installed it yet, download and install it.
- You have installed a media player (recommended: VLC media player). If you have not installed it yet, download and install it.
Pushing Streams
- Obtain the ingest URL.
- Log in to the Live console.
- In the navigation pane on the left, choose Media Live > Channel Management. The Channel Management page is displayed.
- Find the corresponding channel and click Manage on the right. The Update Channel page is displayed.
The ingest URL is required only when Input Type is set to RTMP_PUSH. If FLV_PULL is selected, stream push is not required. The streaming URL provided by the user is directly obtained and used by Media Live to push streams to the origin server.
The ingest URL is the value of URL in Input List shown in Figure 1, for example, rtmp://live-push.example.com/live/huaweitest?request_source=ott&channel_id=huaweitest.
- Run OBS and click Settings in the lower right corner.
- On the left navigation pane, choose Output. Set Output Mode to Advanced and Keyframe Interval to 2.
- On the left navigation pane, choose Stream and enter the ingest URL obtained in step 1.
An ingest URL consists of the following two parts:
- URL: Enter the part from the beginning of the ingest URL to the AppName, for example, rtmp://live-push.example.com/live/.
- Stream Key: Enter the URL containing StreamName, for example, huaweitest?request_source=ott&channel_id=huaweitest.
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 the Sources area, and add a stream source.
- Media Source indicates local media files.
- 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 the streaming URL.
- Log in to the Live console.
- In the navigation pane on the left, choose Media Live > Channel Management. The Channel Management page is displayed.
- Find the corresponding channel and click Manage on the right. The Update Channel page is displayed.
View the streaming URL, as shown in Figure 2. Streaming URLs whose output protocol is HLS, DASH, or MSS can be assembled. Examples are as follows:
- HLS: http://live-play.example.com/live/huaweitest/index.m3u8
- DASH: http://live-play.example.com/live/huaweitest/index.mpd
- MSS: http://live-play.example.com/live/huaweitest.ism/manifest
The preceding example URLs use the HTTP protocol. Streaming URLs also support the HTTPS protocol. If you want to use a URL starting with https://, configure an HTTPS certificate by referring to HTTPS Certificates.
- Run VLC.
- On the menu bar, choose Media > Open Multiple Files.
- In the displayed dialog box, enter the streaming URL obtained in step 1. Click Play.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot