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.
Reading Media
Section titled “Reading Media”// initconst getClip = yield* AWS.KinesisVideo.GetClip(stream);
// runtimeconst clip = yield* getClip({ ClipFragmentSelector: { FragmentSelectorType: "SERVER_TIMESTAMP", TimestampRange: { StartTimestamp: start, EndTimestamp: end }, },});