Skip to content

Interface: PastObjectSource ​

Source of already-produced (historical) objects for a track. Backed by an ObjectCache allowing range retrieval using protocol Locations. 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

Underlying cache from which objects are served

Methods ​

getRange() ​

getRange(start?, end?): Promise<MoqtObject[]>

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

end? ​

Location

Returns ​

Promise<MoqtObject[]>