---
url: https://docs.moqtail.dev/ts/api/player/interfaces/MediaSourceOptions.md
---
# Interface: MediaSourceOptions

Load options every media source takes. The catalog element, and wrapping sources such as
the SSTS one, pass them to whichever source the probe picks.

## Extended by

* [`SwitchingSetOptions`](SwitchingSetOptions.md)

## Properties

### preroll?

> `optional` **preroll?**: `Preroll`

The request the player probed a top-level source's track with, which the source reads on.

***

### ranges?

> `optional` **ranges?**: `Pick`<[`MsfSource`](MsfSource.md), `"locationRanges"` | `"mediaTimeRanges"` | `"wallclockRanges"`>

From the catalog URL.

***

### requests?

> `optional` **requests?**: [`RequestHooks`](RequestHooks.md)

How a parent adds to every SUBSCRIBE and FETCH the source sends.

***

### source?

> `optional` **source?**: [`Identifiers`](Identifiers.md)

A top-level source's identifiers, from `source()` and the player's probe.

***

### switchFrom?

> `optional` **switchFrom?**: `boolean`

From the catalog source options: switch with `SWITCH_FROM`.
