PlaylistLoader
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
createInternalLoader(context: PlaylistLoaderContext): Loader Returns defaults or configured loader-type overloads (pLoader and loader config params) |
|
public |
destroy() |
|
public |
Call |
|
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 |
|
|
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 |
resetInternalLoader(contextType: undefined) |
|
public |
|
|
public |
stopLoad() |
|
public |
|
Public Constructors
public constructor() source
Public Methods
public createInternalLoader(context: PlaylistLoaderContext): Loader source
Returns defaults or configured loader-type overloads (pLoader and loader config params)
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): Loader source
Params:
Name | Type | Attribute | Description |
context | PlaylistLoaderContext |
Return:
Loader |
public handleManifestParsingError(response: LoaderResponse, context: PlaylistLoaderContext, reason: string, networkDetails: undefined) source
public handleMasterPlaylist(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
response | LoaderResponse | ||
stats | LoaderStats | ||
context | PlaylistLoaderContext | ||
networkDetails | undefined |
public handleNetworkError(context: PlaylistLoaderContext, networkDetails: undefined, timeout: undefined, response: LoaderResponse) source
public handlePlaylistLoaded(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
response | LoaderResponse | ||
stats | LoaderStats | ||
context | PlaylistLoaderContext | ||
networkDetails | undefined |
public handleSidxRequest(response: LoaderResponse, context: PlaylistLoaderContext) source
Params:
Name | Type | Attribute | Description |
response | LoaderResponse | ||
context | PlaylistLoaderContext |
public handleTrackOrLevelPlaylist(response: LoaderResponse, stats: LoaderStats, context: PlaylistLoaderContext, networkDetails: undefined) source
Params:
Name | Type | Attribute | Description |
response | LoaderResponse | ||
stats | LoaderStats | ||
context | PlaylistLoaderContext | ||
networkDetails | undefined |
public load(context: PlaylistLoaderContext) 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(event: undefined, data: TrackLoadingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | TrackLoadingData |
public onLevelLoading(event: undefined, data: LevelLoadingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | LevelLoadingData |
public onManifestLoading(event: undefined, data: ManifestLoadingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | ManifestLoadingData |
public onSubtitleTrackLoading(event: undefined, data: TrackLoadingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | TrackLoadingData |
public registerListeners() source
public resetInternalLoader(contextType: undefined) source
Params:
Name | Type | Attribute | Description |
contextType | undefined |
public startLoad(startPosition: number) source
Params:
Name | Type | Attribute | Description |
startPosition | number |