The nature of CSS is a streaming process, similar to the live broadcast of TV channels sent to audience through cable networks. In order to complete this process, CSS needs to have a capture and push device (similar to a camera), a cloud live streaming service (similar to a cable network), and a playback device (similar to a TV set). These devices can be smart devices such as mobile phones, PCs, and tablets as well as web browsers. We provide complete software demos for different types of devices.
Note:CSS provides a default push domain name in the format of
xxx.livepush.myqcloud.com
. We recommend you not use it as the push domain name for your real business.
Log in to the CSS console, select CSS Toolkit > Address Generator to generate a push address and configure as follows:
AppName
(live
by default). This is used to differentiate the paths of different applications under the same domain name.StreamName
, such as liveteststream
.2019-10-18 23:59:59
.Note:
- To ensure the security of your live streams, the system will automatically enable push authentication. You can also select the push domain name to be modified in Domain Management and click Manage on the right to enter the domain name details page and customize the authentication information in Push Configuration. The push address is in the following format:
rtmp://domain/AppName/StreamName?txSecret=Md5(key+StreamName+hex(time))&txTime=hex(time)
- In addition to the above method, you can also select a push domain name in Domain Management in the CSS console, click Manage, select Push Configuration, enter the expiration time of the push address and the custom
StreamName
, and click Generate Push Address to generate a push address.- If you need a persistent push address, you can enter Domain Management, select a push domain name, click Manage, and select Push Configuration for calculation and generation by referring to the sample code in Push Address Sample Code. For more information, please see How can I view the push sample code?.
You can use the following methods to implement live push based on your business scenario:
For PC (Windows/macOS), you can choose to install OBS or XSplit for push. The former is a free open-source video recording and streaming program that supports operating systems such as Windows, macOS, and Linux, while the latter is a paid program that offers a standalone installer for live game streaming. For non-game live streaming, we recommend you use BroadCaster.
This document uses push with OBS as an example to describe the steps. Assume that the prepared push address is:
rtmp://3891.livepush.myqcloud.com/live/3891_test?bizid=3891&txSecret=xxx&txTime=58540F7F
rtmp://3891.livepush.myqcloud.com/live/
.3891_test?bizid=3891&txSecret=xxx&txTime=58540F7F
.AppName
(live
by default). This is used to differentiate the paths of different applications under the same domain name.StreamName
, such as liveteststream
.2019-10-30 23:59:59
.Note:The web push feature requires that your device have a camera installed and its browser support the Flash plugin to call the camera permission.
Note:If you did not prepare a push address in advance, you can tap New on the right of the push address bar on the Camera Push page, and the system will automatically enter a push address and provide the corresponding playback address which can be used for live playback.
If you need to integrate only live push into your existing application, follow the steps below:
The live SDK is a collection of mobile live streaming services. It demonstrates in the form of free source code how to use Tencent Cloud CSS, VOD, IM, and COS to build the most appropriate live streaming solution for your business.
Was this page helpful?