---
url: https://docs.moqtail.dev/ts/api/client/interfaces/PastObjectSource.md
---
# Interface: PastObjectSource

Source of already-produced (historical) objects for a track.
Backed by an [ObjectCache](ObjectCache.md) allowing range retrieval using protocol [Location](../../model/classes/Location.md)s.
Implementations MUST return objects in ascending location order and MAY return an empty array
if the requested window is outside the cached range.

## Properties

### cache

> `readonly` **cache**: [`ObjectCache`](ObjectCache.md)

Underlying cache from which objects are served

## Methods

### getRange()

> **getRange**(`start?`, `end?`): `Promise`<[`MoqtObject`](../../model/classes/MoqtObject.md)\[]>

Fetch a (closed) range of objects. `start`/`end` are inclusive when provided.
Omitted bounds mean: from earliest cached (when `start` undefined) or up to latest cached (when `end` undefined).

#### Parameters

##### start?

[`Location`](../../model/classes/Location.md)

##### end?

[`Location`](../../model/classes/Location.md)

#### Returns

`Promise`<[`MoqtObject`](../../model/classes/MoqtObject.md)\[]>
