# buildMediaTimeline

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

```ts
function buildMediaTimeline(entries): Uint8Array;
```

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

A timeline object's payload: the records in the order given, as compact JSON. The same form serves an independent
document (every retained record) and an incremental one (only new ones).

## Parameters

| Parameter | Type |
| ------ | ------ |
| `entries` | readonly [`MediaTimelineEntry`](https://www.caprid.com/docs/reference/typescript/caprid/moq-media/interfaces/mediatimelineentry/)[] |

## Returns

`Uint8Array`
