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

Picks renditions for the media sources that don't switch themselves. The player attaches it
once a live stream is ready, and detaches it on `destroy()`, when the stream turns on-demand,
while a media source provides `ABR`, and while a rendition is picked manually.

## Methods

### attach()

> **attach**(`player`, `sink`): `void`

#### Parameters

##### player

[`MOQtailPlayer`](../classes/MOQtailPlayer.md)

##### sink

[`MediaSinkElement`](MediaSinkElement.md)

#### Returns

`void`

***

### detach()

> **detach**(): `void`

#### Returns

`void`
