{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-kinesis-video-streams/json-schema/amazon-kinesis-video-streams-get-dashstreaming-session-urlinput-schema.json",
  "title": "GetDASHStreamingSessionURLInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-kinesis-video-streams-operations-api-openapi.yml#/components/schemas/GetDASHStreamingSessionURLInput",
  "type": "object",
  "properties": {
    "StreamName": {
      "type": "string",
      "description": "The name of the stream for which to retrieve the MPEG-DASH manifest URL. You must specify either the StreamName or the StreamARN."
    },
    "StreamARN": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the stream for which to retrieve the MPEG-DASH manifest URL. You must specify either the StreamName or the StreamARN."
    },
    "PlaybackMode": {
      "type": "string",
      "enum": [
        "LIVE",
        "LIVE_REPLAY",
        "ON_DEMAND"
      ],
      "description": "Whether to retrieve live, live replay, or archived, on-demand data. Features of the three types of sessions include the following: LIVE : For sessions of this type, the MPEG-DASH manifest is continually updated with the latest fragments as they become available. We recommend that the media player retrieve a new manifest on a one-second interval. When this type of session is played in a media player, the user interface typically displays a \"live\" notification, with no scrubber control for choosing the position in the playback window to display. In LIVE mode, the newest available fragments are i"
    },
    "DisplayFragmentTimestamp": {
      "type": "string",
      "enum": [
        "ALWAYS",
        "NEVER"
      ],
      "description": "Per the MPEG-DASH specification, the wall-clock time of fragments in the manifest file can be derived using attributes in the manifest itself. However, typically, MPEG-DASH compatible media players do not properly handle gaps in the media timeline. Kinesis Video Streams adjusts the media timeline in the manifest file to enable playback of media with discontinuities. Therefore, the wall-clock time derived from the manifest file may be inaccurate. If DisplayFragmentTimestamp is set to ALWAYS, the accurate fragment timestamp is added to each S element in the manifest file with the attribute name "
    },
    "DisplayFragmentNumber": {
      "type": "string",
      "enum": [
        "ALWAYS",
        "NEVER"
      ],
      "description": "Fragments are identified in the manifest file based on their sequence number in the session. If DisplayFragmentNumber is set to ALWAYS, the Kinesis Video Streams fragment number is added to each S element in the manifest file with the attribute name “kvs:fn”. These fragment numbers can be used for logging or for use with other APIs (e.g. GetMedia and GetMediaForFragmentList). A custom MPEG-DASH media player is necessary to leverage these this custom attribute. The default value is NEVER."
    },
    "DASHFragmentSelector": {
      "$ref": "#/$defs/DASHFragmentSelector"
    },
    "Expires": {
      "type": "integer",
      "description": "The time in seconds until the requested session expires. This value can be between 300 (5 minutes) and 43200 (12 hours). When a session expires, no new calls to GetDashManifest, GetMP4InitFragment, or GetMP4MediaFragment can be made for that session. The default is 300 (5 minutes)."
    },
    "MaxManifestFragmentResults": {
      "type": "integer",
      "description": "The maximum number of fragments that are returned in the MPEG-DASH manifest. When the PlaybackMode is LIVE, the most recent fragments are returned up to this value. When the PlaybackMode is ON_DEMAND, the oldest fragments are returned, up to this maximum number. When there are a higher number of fragments available in a live MPEG-DASH manifest, video players often buffer content before starting playback. Increasing the buffer size increases the playback latency, but it decreases the likelihood that rebuffering will occur during playback. We recommend that a live MPEG-DASH manifest have a minim"
    }
  },
  "$defs": {
    "DASHFragmentSelector": {
      "type": "object",
      "properties": {
        "FragmentSelectorType": {
          "type": "string",
          "enum": [
            "PRODUCER_TIMESTAMP",
            "SERVER_TIMESTAMP"
          ],
          "description": "The source of the timestamps for the requested media. When FragmentSelectorType is set to PRODUCER_TIMESTAMP and GetDASHStreamingSessionURLInput$PlaybackMode is ON_DEMAND or LIVE_REPLAY, the first fragment ingested with a producer timestamp within the specified FragmentSelector$TimestampRange is included in the media playlist. In addition, the fragments with producer timestamps within the TimestampRange ingested immediately following the first fragment (up to the GetDASHStreamingSessionURLInput$MaxManifestFragmentResults value) are included. Fragments that have duplicate producer timestamps ar"
        },
        "TimestampRange": {
          "$ref": "#/$defs/DASHTimestampRange"
        }
      }
    },
    "DASHTimestampRange": {
      "type": "object",
      "properties": {
        "StartTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The start of the timestamp range for the requested media. If the DASHTimestampRange value is specified, the StartTimestamp value is required. Only fragments that start exactly at or after StartTimestamp are included in the session. Fragments that start before StartTimestamp and continue past it aren't included in the session. If FragmentSelectorType is SERVER_TIMESTAMP, the StartTimestamp must be later than the stream head."
        },
        "EndTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The end of the timestamp range for the requested media. This value must be within 24 hours of the specified StartTimestamp, and it must be later than the StartTimestamp value. If FragmentSelectorType for the request is SERVER_TIMESTAMP, this value must be in the past. The EndTimestamp value is required for ON_DEMAND mode, but optional for LIVE_REPLAY mode. If the EndTimestamp is not set for LIVE_REPLAY mode then the session will continue to include newly ingested fragments until the session expires. This value is inclusive. The EndTimestamp is compared to the (starting) timestamp of the fragme"
        }
      }
    }
  }
}