The nature of CSS is a broadcast 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 broadcast 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.
CSS provides a default push domain name in the format of
xxx.livepush.myqcloud.com. You are not recommended to use it as the push domain name for your real business.
Log in to the CSS Console, select Auxiliary Tools > Address Generator to generate a push address and configure as follows:
StreamName, such as
- 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:
- 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 CSS 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, you are recommended to use BroadCaster.
This document uses push with OBS as an example to describe the steps. Assume that the prepared push address is:
Select "Custom" as the service type.
Enter the first half of the push address as the server, such as `rtmp://3891.livepush.myqcloud.com/live/`.
Enter the second half of the push address as the stream key, such as `3891_test?bizid=3891&txSecret=xxx&txTime=58540F7F`.
Click **OK** in the bottom-right corner.
StreamName, such as
The web push feature requires that your device have a camera installed and its browser support the Flash plugin to call the camera permission.
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 CSS playback.
If you need to integrate only CSS Push into your existing application, follow the steps below to do so quickly.
The CSS 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.
If you don't have a push address yet, you can launch the Mini Program, select RTMP Push, tap Auto Generate on the right of the push address on the RTMP page, and the system will automatically create a push address and generate a playback address.