All Products
Search
Document Center

ApsaraVideo Live:Configure time shifting

Last Updated:Jan 10, 2024

ApsaraVideo Live provides the time shifting feature that allows you to play the past content at any time during live streaming. This way, viewers can watch the exciting moments that they have missed and have a more comprehensive and in-depth live stream viewing experience. This topic describes how to configure time shifting.

Usage notes

The feature allows up to 100,000 viewers to watch a live stream at the same time. If you want to raise the upper limit, submit a ticket. For more information, see Contact us.

Overview

Time shifting is based on conventional HTTP Live Streaming (HLS). During live streaming, an ingested stream is sliced into TS segments, which are distributed to viewers over the HLS protocol. The requested M3U8 playlist contains a segment URL that is constantly refreshed.

In conventional HLS, TS segment URLs and corresponding TS files are not persistently stored, making it impossible to trace the video content of a live stream prior to the current time. After you enable the time shifting feature, TS segment URLs and corresponding TS files are separately stored in a database and an Object Storage Service (OSS) bucket for up to 30 days. This allows you to trace the video content back from the start time of the live stream to the current time.

Time shifting is a value-added feature that adopts the pay-as-you-go billing method. The bills for time shifting cover the fees for using the time shifting feature and the fees for bandwidth and traffic generated for time shifting. The fees for using the time shifting feature are charged based on the daily amount of time-shifting data that is written and the specified number of days the time-shifting data is retained. The fees for bandwidth and traffic generated for time shifting are charged based on the unit prices of bandwidth and traffic for streaming. For more information, visit the ApsaraVideo Live pricing page.

Procedure

  1. Log on to the ApsaraVideo Live console.
  2. In the left-side navigation pane, click Domains to go to the Domain Management page.
  3. Find the streaming domain that you want to configure and click Domain Settings in the Actions column.

    001

  4. Choose Templates > Time Shifting Settings.

  5. Click Add.

  6. Configure time shifting.

    直播时移

    The following table describes the parameters that you can specify to configure time shifting.

    Parameter

    Description

    Application Name

    The name of the application. The value of the Application Name parameter must be the same as the application name specified in the ingest URL. Otherwise, the configuration does not take effect. If you need to configure time shifting for all applications in your domain name, enter an asterisk (*).

    Stream Name

    The name of the live stream.

    Time Shifting Period

    The number of days the time-shifting data is retained. Valid values:

    • 1 Day

    • 3 Days

    • 7 Days

    • 15 Days

    • 30 Days

    Note
    • The time shifting configuration takes effect only for newly ingested streams, but not for live streams in progress.

    • You can use the URL that corresponds to the streaming domain to access time-shifting streams. For more information, see Time shifting.

    • If a sub-streaming domain is bound to the main streaming domain, go to the configuration page of the sub-streaming domain and enable time shifting for the sub-streaming domain. Otherwise, the time shifting settings do not take effect for the sub-streaming domain.

    • You are charged for time shifting based on the daily amount of time-shifting data that is written and the specified number of days the time-shifting data is retained. For more information, see Billing of time shifting.

  7. Click OK.