tencent cloud


Web Push

Last updated: 2022-03-20 20:32:55

    CSS allows you to push streams over the web. You can generate a push URL quickly and push streams from the camera or screen or push a local file to test CSS features.


    • You have logged in to the CSS console.
    • You have added a push domain name.
    • Your device has a camera installed and your browser allows Flash to access the camera.


    1. Log in to the CSS console and select Web Push.
    2. Select the capturing source, which can be camera, screen, or local file.

      Capture and publish audio/video from the camera/mic (which can be a peripheral device). Click Turn On for Camera/Mic. You need to grant your browser access to the camera/mic if it is the first time you perform this action.

      >! You cannot change the capturing source after enabling camera preview or selecting screen content to share. To switch the source, disable camera preview or cancel screen sharing first.
    3. Configure capturing data. The defaults are recommended settings, which vary with resolution. You can click Edit and select Custom to customize capturing data. For camera and screen sharing, the settings include resolution, video frame rate, and audio sample rate, while for local files, only the former two are applicable.
    4. Configure push data. The defaults are recommended settings (the recommended video bitrate varies with resolution, and the audio bitrate is fixed). You can click Edit and select Custom to customize video and audio bitrates.

      WebRTC push uses the Opus audio codec, and you are advised to play the streams pushed using LEB WebRTC URLs. If you use a standard live streaming protocol (RTMP, FLV, or HLS), the system will automatically convert the streams to AAC, which will incur transcoding fees. For details, see the billing document.

    5. Preview streams. After completing the above steps, you can enable preview to preview the stream on the right.

    6. Enter a WebRTC push URL or click Generate and complete the following configuration:
    - Select your push domain.
    - Enter a unique AppName for an application to distinguish it from other applications under the same domain name. AppName is live by default.
    - Enter a custom StreamName, such as test.
    - Select an expiration time, such as 2021-08-28 16:16:52.
    - Click Confirm, and a push URL is auto-generated.

    7. Click Start Push to start streaming. To enable/disable video or audio, click or . After you disable video/audio, data capturing will continue and push will still succeed, but the stream cannot be previewed and will have no video or audio.


    You cannot enable or disable preview after push succeeds, and you may incur bandwidth/traffic costs or the costs of other value-added services for pushing streams.

    8. After push succeeds, click View below the preview to view streaming statistics. You cannot obtain statistics or playback URLs for push URLs not under your account. Please use a push domain under your account to generate push URLs or relay streams to your account.

    9. If you have added a playback domain in Domain Management, you can select the domain to generate a playback URL. To generate a URL of a transcoded stream, you need to bind the playback domain with a transcoding template first.

    A playback URL is made up of four parts, as shown below:
    Supported protocols include RTMP, FLV, HLS, and UDP. You can also click the QR code icon and scan the QR code using the TCToolkit app to obtain the playback URL.


    If HTTPS is enabled for the playback domain selected, the FLV and HLS URLs generated will start with https.

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support