Home Reference Source
import BasePlaylistController from 'hls.js/src/controller/base-playlist-controller.ts'
public class | source

BasePlaylistController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

hls: *

public

log: *

public
public
public

warn: *

Method Summary

Public Methods
public
public
public

loadPlaylist(hlsUrlParameters: HlsUrlParameters)

public

onError(event: undefined, data: ErrorData)

public

playlistLoaded(index: number, data: undefined, previousDetails: LevelDetails)

public

retryLoadingOrFail(errorEvent: ErrorData): boolean

public

shouldLoadTrack(track: MediaPlaylist): boolean

public
public
public

switchParams(playlistUri: string, previous: LevelDetails): *

Public Constructors

public constructor() source

Public Members

public canLoad: boolean source

public hls: * source

public log: * source

public retryCount: number source

public timer: number source

public warn: * source

Public Methods

public clearTimer() source

public destroy() source

public loadPlaylist(hlsUrlParameters: HlsUrlParameters) source

Params:

NameTypeAttributeDescription
hlsUrlParameters HlsUrlParameters

public onError(event: undefined, data: ErrorData) source

Params:

NameTypeAttributeDescription
event undefined
data ErrorData

public playlistLoaded(index: number, data: undefined, previousDetails: LevelDetails) source

Params:

NameTypeAttributeDescription
index number
data undefined
previousDetails LevelDetails

public retryLoadingOrFail(errorEvent: ErrorData): boolean source

Params:

NameTypeAttributeDescription
errorEvent ErrorData

Return:

boolean

public shouldLoadTrack(track: MediaPlaylist): boolean source

Params:

NameTypeAttributeDescription
track MediaPlaylist

Return:

boolean

public startLoad() source

public stopLoad() source

public switchParams(playlistUri: string, previous: LevelDetails): * source

Params:

NameTypeAttributeDescription
playlistUri string
previous LevelDetails

Return:

*