Home Reference Source
import PlaylistLoader from 'hls.js/src/loader/playlist-loader.ts'
public class | source

PlaylistLoader

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

hls: *

public

loaders: *

Method Summary

Public Methods
public

createInternalLoader(context: PlaylistLoaderContext): Loader

Returns defaults or configured loader-type overloads (pLoader and loader config params)

public
public

Call destroy on all internal loader instances mapped (one per context type)

public

getInternalLoader(context: PlaylistLoaderContext): Loader

public

handleManifestParsingError(response: LoaderResponse, context: PlaylistLoaderContext, reason: string, networkDetails: undefined)

public

handleMasterPlaylist(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined)

public

handleNetworkError(context: PlaylistLoaderContext, networkDetails: undefined, timeout: undefined, response: LoaderResponse)

public

handlePlaylistLoaded(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined)

public

handleSidxRequest(response: LoaderResponse, context: PlaylistLoaderContext)

public

handleTrackOrLevelPlaylist(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined)

public

load(context: PlaylistLoaderContext)

public

loaderror(response: LoaderResponse, context: PlaylistLoaderContext, networkDetails: undefined)

public

loadsuccess(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined)

public

loadtimeout(stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined)

public

onAudioTrackLoading(event: undefined, data: TrackLoadingData)

public

onLevelLoading(event: undefined, data: LevelLoadingData)

public

onManifestLoading(event: undefined, data: ManifestLoadingData)

public

onSubtitleTrackLoading(event: undefined, data: TrackLoadingData)

public
public
public

Public Constructors

public constructor() source

Public Members

public hls: * source

public loaders: * source

Public Methods

public createInternalLoader(context: PlaylistLoaderContext): Loader source

Returns defaults or configured loader-type overloads (pLoader and loader config params)

Params:

NameTypeAttributeDescription
context PlaylistLoaderContext

Return:

Loader

public destroy() source

public destroyInternalLoaders() source

Call destroy on all internal loader instances mapped (one per context type)

public getInternalLoader(context: PlaylistLoaderContext): Loader source

Params:

NameTypeAttributeDescription
context PlaylistLoaderContext

Return:

Loader

public handleManifestParsingError(response: LoaderResponse, context: PlaylistLoaderContext, reason: string, networkDetails: undefined) source

Params:

NameTypeAttributeDescription
response LoaderResponse
context PlaylistLoaderContext
reason string
networkDetails undefined

public handleMasterPlaylist(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source

Params:

NameTypeAttributeDescription
response LoaderResponse
stats LoaderStats
context PlaylistLoaderContext
networkDetails undefined

public handleNetworkError(context: PlaylistLoaderContext, networkDetails: undefined, timeout: undefined, response: LoaderResponse) source

Params:

NameTypeAttributeDescription
context PlaylistLoaderContext
networkDetails undefined
timeout undefined
response LoaderResponse

public handlePlaylistLoaded(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source

Params:

NameTypeAttributeDescription
response LoaderResponse
stats LoaderStats
context PlaylistLoaderContext
networkDetails undefined

public handleSidxRequest(response: LoaderResponse, context: PlaylistLoaderContext) source

Params:

NameTypeAttributeDescription
response LoaderResponse
context PlaylistLoaderContext

public handleTrackOrLevelPlaylist(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source

Params:

NameTypeAttributeDescription
response LoaderResponse
stats LoaderStats
context PlaylistLoaderContext
networkDetails undefined

public load(context: PlaylistLoaderContext) source

Params:

NameTypeAttributeDescription
context PlaylistLoaderContext

public loaderror(response: LoaderResponse, context: PlaylistLoaderContext, networkDetails: undefined) source

Params:

NameTypeAttributeDescription
response LoaderResponse
context PlaylistLoaderContext
networkDetails undefined

public loadsuccess(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source

Params:

NameTypeAttributeDescription
response LoaderResponse
stats LoaderStats
context PlaylistLoaderContext
networkDetails undefined

public loadtimeout(stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source

Params:

NameTypeAttributeDescription
stats LoaderStats
context PlaylistLoaderContext
networkDetails undefined

public onAudioTrackLoading(event: undefined, data: TrackLoadingData) source

Params:

NameTypeAttributeDescription
event undefined
data TrackLoadingData

public onLevelLoading(event: undefined, data: LevelLoadingData) source

Params:

NameTypeAttributeDescription
event undefined
data LevelLoadingData

public onManifestLoading(event: undefined, data: ManifestLoadingData) source

Params:

NameTypeAttributeDescription
event undefined
data ManifestLoadingData

public onSubtitleTrackLoading(event: undefined, data: TrackLoadingData) source

Params:

NameTypeAttributeDescription
event undefined
data TrackLoadingData

public registerListeners() source

public resetInternalLoader(contextType: undefined) source

Params:

NameTypeAttributeDescription
contextType undefined

public unregisterListeners() source