PlaylistLoader
Extends:
Static Member Summary
Static Public Members | ||
public static get |
ContextType: * |
|
public static get |
LevelType: * |
Static Method Summary
Static Public Methods | ||
public static |
canHaveQualityLevels(type: ContextType): boolean |
|
public static |
getResponseUrl(response: *, context: *): * |
|
public static |
mapContextToLevelType(context: {type: ContextType}): LevelType Map context.type to LevelType |
Constructor Summary
Public Constructor | ||
public |
constructor(hls: Hls) |
Member Summary
Public Members | ||
public |
loaders: {} |
Method Summary
Public Methods | ||
public |
createInternalLoader(context: object): XHRLoader 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: *): * |
|
public |
|
|
public |
|
|
public |
loadsuccess(response: *, stats: *, context: *, networkDetails: undefined) |
|
public |
loadtimeout(stats: *, context: *, networkDetails: undefined) |
|
public |
onAudioTrackLoading(data: *) |
|
public |
onLevelLoading(data: *) |
|
public |
onManifestLoading(data: *) |
|
public |
onSubtitleTrackLoading(data: *) |
|
public |
resetInternalLoader(contextType: *) |
Private Methods | ||
private |
_handleManifestParsingError(response: *, context: *, reason: *, networkDetails: *) |
|
private |
_handleMasterPlaylist(response: *, stats: *, context: *, networkDetails: *) |
|
private |
_handleNetworkError(context: *, networkDetails: *, timeout: boolean) |
|
private |
_handlePlaylistLoaded(response: *, stats: *, context: *, networkDetails: *) |
|
private |
_handleSidxRequest(response: *, context: *) |
|
private |
_handleTrackOrLevelPlaylist(response: *, stats: *, context: *, networkDetails: *) |
Inherited Summary
From class EventHandler | ||
public |
|
|
public |
hls: * |
|
public |
|
|
public |
destroy() |
|
public |
isEventHandler(): * |
|
public |
onEvent(event: *, data: *) arguments: event (string), data (any) |
|
public |
onEventGeneric(event: *, data: *) |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Static Public Methods
public static canHaveQualityLevels(type: ContextType): boolean source
Params:
Name | Type | Attribute | Description |
type | ContextType |
public static getResponseUrl(response: *, context: *): * source
Params:
Name | Type | Attribute | Description |
response | * | ||
context | * |
Return:
* |
public static mapContextToLevelType(context: {type: ContextType}): LevelType source
Map context.type to LevelType
Params:
Name | Type | Attribute | Description |
context | {type: ContextType} |
Public Constructors
public constructor(hls: Hls) source
Override:
EventHandler#constructorParams:
Name | Type | Attribute | Description |
hls | Hls |
Public Members
public loaders: {} source
Public Methods
public createInternalLoader(context: object): XHRLoader 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 | object |
Return:
XHRLoader | or other compatible configured overload |
public destroyInternalLoaders() source
Call destroy
on all internal loader instances mapped (one per context type)
public getInternalLoader(context: *): * source
Params:
Name | Type | Attribute | Description |
context | * |
Return:
* |
public load(url: *, context: *): boolean source
Params:
Name | Type | Attribute | Description |
url | * | ||
context | * |
public loaderror(response: *, context: *, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
response | * | ||
context | * | ||
networkDetails | undefined |
|
public loadsuccess(response: *, stats: *, context: *, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
response | * | ||
stats | * | ||
context | * | ||
networkDetails | undefined |
|
public loadtimeout(stats: *, context: *, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
stats | * | ||
context | * | ||
networkDetails | undefined |
|
public onAudioTrackLoading(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onLevelLoading(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onManifestLoading(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onSubtitleTrackLoading(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public resetInternalLoader(contextType: *) source
Params:
Name | Type | Attribute | Description |
contextType | * |
Private Methods
private _handleManifestParsingError(response: *, context: *, reason: *, networkDetails: *) source
Params:
Name | Type | Attribute | Description |
response | * | ||
context | * | ||
reason | * | ||
networkDetails | * |
private _handleMasterPlaylist(response: *, stats: *, context: *, networkDetails: *) source
Params:
Name | Type | Attribute | Description |
response | * | ||
stats | * | ||
context | * | ||
networkDetails | * |
private _handleNetworkError(context: *, networkDetails: *, timeout: boolean) source
Params:
Name | Type | Attribute | Description |
context | * | ||
networkDetails | * | ||
timeout | boolean |
|
private _handlePlaylistLoaded(response: *, stats: *, context: *, networkDetails: *) source
Params:
Name | Type | Attribute | Description |
response | * | ||
stats | * | ||
context | * | ||
networkDetails | * |
private _handleSidxRequest(response: *, context: *) source
Params:
Name | Type | Attribute | Description |
response | * | ||
context | * |
private _handleTrackOrLevelPlaylist(response: *, stats: *, context: *, networkDetails: *) source
Params:
Name | Type | Attribute | Description |
response | * | ||
stats | * | ||
context | * | ||
networkDetails | * |