PlaylistLoader
Extends:
Static Method Summary
Static Public Methods | ||
public static |
canHaveQualityLevels(type: PlaylistContextType): boolean |
|
public static |
getResponseUrl(response: LoaderResponse, context: PlaylistLoaderContext): string |
|
public static |
mapContextToLevelType(context: PlaylistLoaderContext): PlaylistLevelType Map context.type to LevelType |
Constructor Summary
Public Constructor | ||
public |
constructor(hls: Hls) |
Member Summary
Public Members | ||
public |
loaders: Partial |
Method Summary
Public Methods | ||
public |
createInternalLoader(context: PlaylistLoaderContext): Loader Returns defaults or configured loader-type overloads (pLoader and loader config params) Default loader is XHRLoader (see utils) |
|
public |
destroy() |
|
public |
Call |
|
public |
getInternalLoader(context: PlaylistLoaderContext): * |
|
public |
|
|
public |
|
|
public |
loadsuccess(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) |
|
public |
loadtimeout(stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) |
|
public |
onAudioTrackLoading(data: undefined) |
|
public |
onLevelLoading(data: undefined) |
|
public |
onManifestLoading(data: undefined) |
|
public |
onSubtitleTrackLoading(data: undefined) |
|
public |
resetInternalLoader(contextType: PlaylistContextType) |
Private Methods | ||
private |
_handleManifestParsingError(response: LoaderResponse, context: PlaylistLoaderContext, reason: string, networkDetails: undefined) |
|
private |
_handleMasterPlaylist(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) |
|
private |
_handleNetworkError(context: PlaylistLoaderContext, networkDetails: undefined, timeout: boolean, response: undefined) |
|
private |
_handlePlaylistLoaded(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) |
|
private |
_handleSidxRequest(response: LoaderResponse, context: PlaylistLoaderContext) |
|
private |
_handleTrackOrLevelPlaylist(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) |
Static Public Methods
public static canHaveQualityLevels(type: PlaylistContextType): boolean source
Params:
Name | Type | Attribute | Description |
type | PlaylistContextType |
public static getResponseUrl(response: LoaderResponse, context: PlaylistLoaderContext): string source
Params:
Name | Type | Attribute | Description |
response | LoaderResponse | ||
context | PlaylistLoaderContext |
public static mapContextToLevelType(context: PlaylistLoaderContext): PlaylistLevelType source
Map context.type to LevelType
Params:
Name | Type | Attribute | Description |
context | PlaylistLoaderContext |
Return:
PlaylistLevelType |
Public Constructors
Public Members
public loaders: Partial source
Public Methods
public createInternalLoader(context: PlaylistLoaderContext): Loader source
Returns defaults or configured loader-type overloads (pLoader and loader config params) Default loader is XHRLoader (see utils)
Params:
Name | Type | Attribute | Description |
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): * source
Params:
Name | Type | Attribute | Description |
context | PlaylistLoaderContext |
Return:
* |
public load(context: PlaylistLoaderContext): boolean source
Params:
Name | Type | Attribute | Description |
context | PlaylistLoaderContext |
public loaderror(response: LoaderResponse, context: PlaylistLoaderContext, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
response | LoaderResponse | ||
context | PlaylistLoaderContext | ||
networkDetails | undefined |
public loadsuccess(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
response | LoaderResponse | ||
stats | LoaderStats | ||
context | PlaylistLoaderContext | ||
networkDetails | undefined |
public loadtimeout(stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
stats | LoaderStats | ||
context | PlaylistLoaderContext | ||
networkDetails | undefined |
public onAudioTrackLoading(data: undefined) source
Params:
Name | Type | Attribute | Description |
data | undefined |
public onManifestLoading(data: undefined) source
Params:
Name | Type | Attribute | Description |
data | undefined |
public onSubtitleTrackLoading(data: undefined) source
Params:
Name | Type | Attribute | Description |
data | undefined |
public resetInternalLoader(contextType: PlaylistContextType) source
Params:
Name | Type | Attribute | Description |
contextType | PlaylistContextType |
Private Methods
private _handleManifestParsingError(response: LoaderResponse, context: PlaylistLoaderContext, reason: string, networkDetails: undefined) source
private _handleMasterPlaylist(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
response | LoaderResponse | ||
stats | LoaderStats | ||
context | PlaylistLoaderContext | ||
networkDetails | undefined |
private _handleNetworkError(context: PlaylistLoaderContext, networkDetails: undefined, timeout: boolean, response: undefined) source
private _handlePlaylistLoaded(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
response | LoaderResponse | ||
stats | LoaderStats | ||
context | PlaylistLoaderContext | ||
networkDetails | undefined |
private _handleSidxRequest(response: LoaderResponse, context: PlaylistLoaderContext) source
Params:
Name | Type | Attribute | Description |
response | LoaderResponse | ||
context | PlaylistLoaderContext |