tencent cloud


Live Streaming Time Shifting

Last updated: 2022-04-28 16:40:53

    Time-shift playback in live streaming is based on live recording, live streaming time shifting, and VOD accelerated distribution. After a live streaming starts, a viewer can choose a previous time point other than the current time to start watching. This is commonly used to play back highlights in sport events. Users can change the progress bar to view contents generated earlier than the current time without waiting until the end of the live streaming. At the same time, the live streaming stays the same and users can switch back to the live streaming.


    • Users can specify the delay for playing live content, i.e., the difference between the playback start time and current time.
    • Users can specify the bitrate for time shifting if a live stream is recorded in multiple bitrates.


    • You have signed up and logged in to a Tencent Cloud account, and completed the identity verification. Unverified users cannot purchase instances of live streaming time shifting for Chinese mainland.
    • You have activated the CSS service and added a push domain name.


    • To use time-shift playback, you need first enable the time shifting feature.
    • The smallest time-shift duration is 90s, which means there is a latency of over 90s in the playback content compared with the live streaming content.
    • The time shifting feature is being beta tested and is not charged currently. However, the feature relies on live recording, so you will be charged a live recording fee and storage and playback fees for using the feature.


    Step 1. Activate VOD

    1. Log in to the VOD console and click Activate Now.
    2. Check the checkbox to agree to the service agreement, and click OK to activate VOD service. Log in to the VOD console.

    Step 2. Add a domain name for time shifting

    To add the Tencent Cloud VOD domain name for time-shift playback, perform the following:

    1. Log in to the VOD console and click Distribution and Playback > Domain Name in the left sidebar.

    2. Click Add Domain and enter the VOD domain name. For more information, please see Distribution and Playback Settings.

    3. Configure the new domain CNAME.

    Step 3. Bind a recording template

    1. Log in to the CSS console and click Feature Configuration > Live Recording.

    2. Click Create Recording Template to create a recording template. For more information, please see Recording Template Configuration.


      • Select HLS as the file type.
      • Set the file storage duration, which cannot be shorter than the time-shift period.
    3. Bind the recording template with the push domain name to be configured. For more information, please see Recording Configuration.

    Step 4. Enable time shifting

    You can submit a ticket, select “CSS” and request to activate time shifting feature and provide the following parameters:

    • VOD domain name for time-shift playback added in Step 2.
    • Recording template ID added in Step 3.
    • Set the time-shift period parameter timeshift_dur, which is measured in seconds.

    • Time-shift period indicates how further back you can go in terms of time shifting. The maximum time-shift period allowed currently is 7 days.
    • The feature may not work exactly according to the period configured. We recommend you set the period a little longer than you actually need.
    • If the parameter is set to 7200 (2 hours), you will be able to request content generated since 2 hours ago. (i.e., the value range for the playback delay parameter delay is 90 seconds to 2 hours). If content generated more than 2 hours ago is requested, HTTP 404 will be returned even if there is live streaming content.

    Playback Request

    Request URL format


    Parameter description

    Parameter Description
    [Domain] The registered domain name of the time shifting feature, namely, the time-shift playback domain name you added to the VOD console.
    timeshift Fixed field which needs no modification
    [AppName] Application name. If your application name is live, then enter live.
    [StreamName] Stream name. Enter the name of the stream you request.
    timeshift.m3u8 Fixed field which needs no modification
    delay Playback delay (s). This parameter must be 90 or larger. It will be defaulted to 90 if the value specified is less than 90.


    Suppose the time-shift domain name is testtimeshift.com, application name live, and stream name SLPUrIFzGPE. If you need to play back live content generated 5 minutes ago, the request URL should be:


    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