Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Time-shifted query parameters in AWS Elemental MediaPackage - AWS Elemental MediaPackage v2

Time-shifted query parameters in AWS Elemental MediaPackage

To use time-shifted viewing query parameters, append aws.manifestsettings to your playback request to MediaPackage. MediaPackage evaluates the query, and serves a client manifest based on those query parameters. Manifest queries are not case-sensitive and can be up to 1024 characters long. If the query is malformed, MediaPackage returns an error. For query syntax, see the following section.

Query syntax

The base query parameter for time-shifted viewing is aws.manifestsettings, which is followed by optional parameter name and value pairs. To construct the query, append ?aws.manifestsettings= to the end of the MediaPackage endpoint URL, followed by parameter names and values. For a list of all of the available parameters, see Query parameters.

An Apple HLS filter query might look like this:

https://example-mediapackage-endpoint.mediapackage.us-west-2.amazonaws.com/out/v1/examplemediapackage/index.m3u8?aws.manifestsettings=

The query syntax is listed in the following table.

Note

If you use Amazon CloudFront as your CDN, you might need to set additional configurations. For more information, see Configure cache behavior for all endpoints.

Query string component Description
? A restricted character that marks the beginning of a query.
aws.manifestsettings= The base query, which is followed by parameters constructed of name and value pairs. For a list of all of the available parameters, see Query parameters.
: Used to associate the parameter name with a value. For example, parameter_name:value.
; Separates parameters in a query that contains multiple parameters. For example, parameter1_name:value;parameter2_name:minValue-maxValue. When used in a list of parameters for the same query, implies an AND operation.
Date and time format requirements

In all cases, the date and time must be notated in one of the following formats:

  • ISO 8601 dates, such as 2017-08-18T21:18:54+00:00. Where -08:00 is the timezone UTC -08:00.

  • POSIX (or Epoch) time, such as 1503091134

DASH parameter rules

Start and end parameters in the URL request for DASH content can use standard parameter notation, or can be included as path elements in the URL.

  • Query parameter notation – start and end parameters are included at the end of the request URL

    https://cf98fa7b2ee4450e.mediapackagev2.us-east-1.amazonaws.com/out/v1/997cbb27697d4863bb65488133bff26f/sports.mpd?start=1513717228&end=1513720828
  • Path elements – start and end parameters are included in the path of the request URL

    https://cf98fa7b2ee4450e.mediapackagev2.us-east-1.amazonaws.com/out/v1/997cbb27697d4863bb65488133bff26f/start/2017-12-19T13:00:28-08:00/end/2017-12-19T14:00:28-08:00/sports.mpd
TS and CMAF parameter rules

Start and end parameters in the URL request for TS content can use standard parameter notation.

  • Query parameter notation – start and end parameters are included at the end of the request URL

    Example TS
    https://cf98fa7b2ee4450e.mediapackagev2.us-east-1.amazonaws.com/out/v1/064134724fd74667ba294657a674ae72/comedy.m3u8?start=2017-12-19T13:00:28-08:00&end=2017-12-19T14:00:28-08:00
    Example CMAF
    https://cf98fa7b2ee4450e.mediapackagev2.us-east-1.amazonaws.com/out/v1/064134724fd74667ba294657a674ae72/manifest_id/news.m3u8?start=2018-04-04T01:14:00-08:00&end=2018-04-04T02:15:00-08:00

Query parameters

Playback devices can append the following time-shifted viewing query parameters to their requests to MediaPackage. Responses to requests with one or more of these parameters will include manifests that adhere to the specified time-shifted query parameters.

If you want all manifests served from this origin endpoint to be time shifted, enable the settings on the endpoint, as described in Creating an origin endpoint in AWS Elemental MediaPackage.

Note

The manifest_window_seconds option is available only as a query parameter on a session initialization URL, and not as a setting on the endpoint. This is because the manifest_window_seconds query parameter modifies the standard length of the manifest that's configured through the Manifest window setting on the endpoint. For more information about manifest window relationships, see Window duration.

Name Description Example
clip_start_time
  • With a time delay manifest, defines the earliest content that should be available in this manifest.

  • Accepted values: Epoch or ISO 8601 timestamp that represents the earliest date and time that live content is available in the manifest.

    • clip_start_time can't be combined with start or end parameters.

    • clip_start_time query parameters can't be combined with Clip start time settings on the origin endpoint.

stream.mpd?aws.manifestsettings=subtitle_language:en-US, hi;clip_start_time:1720246778
manifest_window_seconds
  • Used to request a manifest that's shorter than manifest window for this request.

  • Accepted values: Integer that represents the desired manifest window in seconds.

    • At minimum, the value provided must be greater than or equal to double the length of the segment target duration. This is to ensure that the window includes at least two segments.

    • At maximum, the value provided must be less than the configured manifest window in the manifest settings for the origin endpoint.

stream.mpd?aws.manifestsettings=manifest_window_seconds:30
start
stream.mpd?aws.manifestsettings=start:1732285823
end
stream.mpd?aws.manifestsettings=end:1732300175
time_delay
stream.mpd?aws.manifestsettings=time_delay:320

URL encoding query parameters

When you add query parameters to your HLS and LL-HLS playback requests, MediaPackage appends the parameters in alphabetical order to the child manifest URLs. For instance, the end parameter is listed before the start parameter.

To create a signed API request for AWS Signature Version 4 (SigV4) signing, your query strings must be URL encoded. By default, MediaPackage doesn't encode query parameters. To be a valid SigV4 signature, choose URL-encode HLS child manifest query parameters on your HLS or LL-HLS origin endpoint, as described in Manifest fields.

For more information about SigV4 and its requirements, see AWS Signature Version 4 for API requests in AWS Identity and Access Management User Guide.

Example unencoded query strings
hls_video-1080.m3u8?aws.manifestsettings=time_delay:10&end=2025-02-03T17:09:49Z&start=2025-02-03T17:08:49Z
Example URL-encoded query strings
hls_video-1080.m3u8?aws.manifestsettings=time_delay%3A10&end=2025-02-03T17%3A09%3A49Z&start=2025-02-03T17%3A08%3A49Z
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.