# FrameGrouping

URL: https://www.caprid.com/docs/reference/typescript/caprid/relay/media/type-aliases/framegrouping/

```ts
type FrameGrouping = "keyframe" | "frame";
```

Defined in: [relay-sdks/ts/src/frame-writer.ts:9](https://github.com/caprids/relay-sdks/blob/main/ts/src/frame-writer.ts#L9)

How a [FrameWriter](https://www.caprid.com/docs/reference/typescript/caprid/relay/media/interfaces/framewriter/) maps frames onto groups. `'keyframe'` is the LOC mapping for video: a keyframe FINs the
open group and opens a new one, deltas append to it. `'frame'` sends every frame as its own single-object group, the
mapping for audio and any other independently decodable frames.
