Skip to content

Interface: MediaSourceElement ​

Implemented by sources that deliver media and handle a switching set.

Methods ​

getRenditions() ​

getRenditions(): Rendition[]

Returns ​

Rendition[]


selectRenditions() ​

selectRenditions(renditionIds): Promise<void>

Sets which renditions ABR may choose from.

Parameters ​

renditionIds ​

string[]

Returns ​

Promise<void>


setTracks() ​

setTracks(tracks): void

Called by the catalog element when an update changes this source's switching set.

Parameters ​

tracks ​

readonly (object & object & object)[]

Returns ​

void


switch() ​

switch(renditionId): Promise<void>

Parameters ​

renditionId ​

string

Returns ​

Promise<void>