GetMediaForFragmentList
Source:
src/AWS/KinesisVideo/GetMediaForFragmentList.ts
Runtime binding for kinesisvideo:GetMediaForFragmentList (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 MKV-packaged media for an explicit list of fragment
numbers (typically discovered via ListFragments). The response
Payload is a streaming body.
Reading Media
Section titled “Reading Media”// initconst getFragmentMedia = yield* AWS.KinesisVideo.GetMediaForFragmentList(stream);
// runtimeconst media = yield* getFragmentMedia({ Fragments: fragments.map((f) => f.FragmentNumber!),});