Skip to content

ListFragments

Source: src/AWS/KinesisVideo/ListFragments.ts

Runtime binding for kinesisvideo:ListFragments (archived media data plane).

Bind this operation to a Stream inside a function runtime to get a callable that resolves the per-stream data endpoint (GetDataEndpoint) and lists the media fragments stored in the requested timestamp range.

// init
const listFragments = yield* AWS.KinesisVideo.ListFragments(stream);
// runtime
const { Fragments } = yield* listFragments({
FragmentSelector: {
FragmentSelectorType: "SERVER_TIMESTAMP",
TimestampRange: { StartTimestamp: start, EndTimestamp: end },
},
});