# chunkToLocFrame

URL: https://www.caprid.com/docs/reference/typescript/caprid/moq-media/functions/chunktolocframe/

```ts
function chunkToLocFrame(chunk, options?): LocFrame;
```

Defined in: [webcodecs.ts:86](https://github.com/caprids/relay-sdks/blob/main/ts/packages/moq-media/src/webcodecs.ts#L86)

Copy the chunk's encoded bytes unchanged and attach LOC metadata; no muxing or bitstream conversion.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `chunk` | `EncodedAudioChunk` \| `EncodedVideoChunk` |
| `options?` | [`ChunkToLocFrameOptions`](https://www.caprid.com/docs/reference/typescript/caprid/moq-media/interfaces/chunktolocframeoptions/) |

## Returns

[`LocFrame`](https://www.caprid.com/docs/reference/typescript/caprid/moq-media/interfaces/locframe/)
