# LocFrame

URL: https://www.caprid.com/docs/reference/typescript/caprid/moq-media/interfaces/locframe/

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

One encoded frame ready to publish as a LOC object: `write(payload, { properties })`.

## Properties

### key

```ts
key: boolean;
```

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

Whether the frame is a key frame; start a new group on one.

***

### payload

```ts
payload: Uint8Array;
```

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

Chunk helpers copy these bytes; packet adapters may borrow them. Keep stable until the write completes.

***

### properties

```ts
properties: KeyValuePair[];
```

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

The LOC object properties: Timestamp and Timescale, plus decoder configuration on key frames when supplied.

***

### timestampUs

```ts
timestampUs: number;
```

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

Presentation time in microseconds, after any timestamp offset.
