import type { StreamingBlobTypes } from "@smithy/types"; import type { StartSelectorType } from "./enums"; /** *

Identifies the chunk on the Kinesis video stream where you want the * GetMedia API to start returning media data. You have the following options to * identify the starting chunk:

* * @public */ export interface StartSelector { /** *

Identifies the fragment on the Kinesis video stream where you want to start getting the * data from.

* * *

If you choose the NOW, EARLIEST, or CONTINUATION_TOKEN as the * startSelectorType, you don't provide any additional information in the * startSelector.

*
* @public */ StartSelectorType: StartSelectorType | undefined; /** *

Specifies the fragment number from where you want the GetMedia API to * start returning the fragments.

* @public */ AfterFragmentNumber?: string | undefined; /** *

A timestamp value. This value is required if you choose the PRODUCER_TIMESTAMP or the * SERVER_TIMESTAMP as the startSelectorType. The GetMedia API then * starts with the chunk containing the fragment that has the specified timestamp.

* @public */ StartTimestamp?: Date | undefined; /** *

Continuation token that Kinesis Video Streams returned in the previous * GetMedia response. The GetMedia API then starts with the chunk * identified by the continuation token.

* @public */ ContinuationToken?: string | undefined; } /** * @public */ export interface GetMediaInput { /** *

The Kinesis video stream name from where you want to get the media content. If you * don't specify the streamName, you must specify the * streamARN.

* @public */ StreamName?: string | undefined; /** *

The ARN of the stream from where you want to get the media content. If you don't * specify the streamARN, you must specify the streamName.

* @public */ StreamARN?: string | undefined; /** *

Identifies the starting chunk to get from the specified stream.

* @public */ StartSelector: StartSelector | undefined; } /** * @public */ export interface GetMediaOutput { /** *

The content type of the requested media.

* @public */ ContentType?: string | undefined; /** *

The payload Kinesis Video Streams returns is a sequence of chunks from the specified * stream. For information about the chunks, see . The * chunks that Kinesis Video Streams returns in the GetMedia call also include the * following additional Matroska (MKV) tags:

* *

The following tags will be present if an error occurs:

* *

The error codes are as follows:

* * @public */ Payload?: StreamingBlobTypes | undefined; }