LevelController
Extends:
Constructor Summary
| Public Constructor | ||
| public |  | |
Member Summary
| Public Members | ||
| public |  | |
| public get |  | |
| public set |  | |
| public get |  | |
| public set |  | |
| public get | levels: * | |
| public get |  | |
| public set |  | |
| public |  | |
| public get |  | |
| public set |  | |
| public |  | |
| public |  | |
| public get | startLevel: * | |
| public set |  | |
| Private Members | ||
| private |  | |
| private | _levels: * | |
| private |  | |
Method Summary
| Public Methods | ||
| public | destroy() | |
| public | loadPlaylist(hlsUrlParameters: HlsUrlParameters) | |
| public | onAudioTrackSwitched(event: undefined, data: TrackSwitchedData) | |
| public |  | |
| public | onFragLoaded(event: undefined, undefined: FragLoadedData) | |
| public | onLevelLoaded(event: undefined, data: LevelLoadedData) | |
| public | onManifestLoaded(event: undefined, data: ManifestLoadedData) | |
| public | recoverLevel(errorEvent: ErrorData, levelIndex: number, levelError: boolean, levelSwitch: boolean) Switch to a redundant stream if any available. | |
| public | redundantFailover(levelIndex: number) | |
| public | removeLevel(levelIndex: undefined, urlId: undefined) | |
| public |  | |
| Private Methods | ||
| private |  | |
| private |  | |
Public Constructors
public constructor() source
Public Members
public get levels: * source
public get nextLoadLevel: * source
public get startLevel: * source
Private Members
private _levels: * source
Public Methods
public destroy() source
public loadPlaylist(hlsUrlParameters: HlsUrlParameters) source
Params:
| Name | Type | Attribute | Description | 
| hlsUrlParameters | HlsUrlParameters | 
public onAudioTrackSwitched(event: undefined, data: TrackSwitchedData) source
Params:
| Name | Type | Attribute | Description | 
| event | undefined | ||
| data | TrackSwitchedData | 
public onError(event: undefined, data: ErrorData) source
Params:
| Name | Type | Attribute | Description | 
| event | undefined | ||
| data | ErrorData | 
public onFragLoaded(event: undefined, undefined: FragLoadedData) source
Params:
| Name | Type | Attribute | Description | 
| event | undefined | ||
| undefined | FragLoadedData | 
public onLevelLoaded(event: undefined, data: LevelLoadedData) source
Params:
| Name | Type | Attribute | Description | 
| event | undefined | ||
| data | LevelLoadedData | 
public onManifestLoaded(event: undefined, data: ManifestLoadedData) source
Params:
| Name | Type | Attribute | Description | 
| event | undefined | ||
| data | ManifestLoadedData | 
public recoverLevel(errorEvent: ErrorData, levelIndex: number, levelError: boolean, levelSwitch: 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 redundantFailover(levelIndex: number) source
Params:
| Name | Type | Attribute | Description | 
| levelIndex | number | 
 
    
  