Skip to content

GetClip

Source: src/AWS/KinesisVideo/GetClip.ts

Runtime binding for kinesisvideo:GetClip (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 downloads an MP4 clip covering the requested fragment range. The response Payload is a streaming body.

// init
const getClip = yield* AWS.KinesisVideo.GetClip(stream);
// runtime
const clip = yield* getClip({
ClipFragmentSelector: {
FragmentSelectorType: "SERVER_TIMESTAMP",
TimestampRange: { StartTimestamp: start, EndTimestamp: end },
},
});