LevelController
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public set |
|
|
public get |
firstLevel: * |
|
public get |
level: * |
|
public set |
|
|
public |
|
|
public get |
levels: * |
|
public get |
manualLevel: * |
|
public set |
|
|
public |
|
|
public get |
|
|
public set |
|
|
public get |
startLevel: * |
|
public set |
|
|
public |
timer: * |
Private Members | ||
private |
_firstLevel: * |
|
private |
_levels: * |
|
private |
_startLevel: * |
Method Summary
Public Methods | ||
public |
|
|
public |
|
|
public |
onError(data: *) |
|
public |
onFragLoaded(objectPattern: {"frag": *}) |
|
public |
|
|
public |
onLevelLoaded(data: *) |
|
public |
onManifestLoaded(data: *) |
|
public |
recoverLevel(errorEvent: Object, levelIndex: Number, levelError: Boolean, fragmentError: Boolean) Switch to a redundant stream if any available. |
|
public |
setLevelInternal(newLevel: *) |
|
public |
|
|
public |
stopLoad() |
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 |
|
Public Constructors
Public Members
public currentLevelIndex: * source
public set firstLevel source
public get firstLevel: * source
public get level: * source
public set level source
public get levels: * source
public get manualLevel: * source
public set manualLevel source
public manualLevelIndex: * source
public get nextLoadLevel: * source
public set nextLoadLevel source
public get startLevel: * source
public set startLevel source
public timer: * source
Private Members
private _firstLevel: * source
private _levels: * source
private _startLevel: * source
Public Methods
public cleanTimer() source
public loadLevel() source
public onError(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onFragLoaded(objectPattern: {"frag": *}) source
Params:
Name | Type | Attribute | Description |
objectPattern | {"frag": *} |
|
public onLevelLoaded(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onManifestLoaded(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public recoverLevel(errorEvent: Object, levelIndex: Number, levelError: Boolean, fragmentError: Boolean) source
Switch to a redundant stream if any available. If redundant stream is not available, emergency switch down if ABR mode is enabled.
public setLevelInternal(newLevel: *) source
Params:
Name | Type | Attribute | Description |
newLevel | * |