import CapLevelController from 'hls.js/src/controller/cap-level-controller.js'
CapLevelController
Extends:
Static Member Summary
Static Public Members | ||
public static get |
|
Static Method Summary
Static Public Methods | ||
public static |
getMaxLevelByMediaSize(levels: *, width: *, height: *): * |
|
public static |
isLevelAllowed(level: *, restrictedLevels: *[]): * |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
levels: * |
|
public |
media: * |
|
public get |
mediaHeight: * |
|
public get |
mediaWidth: * |
|
public |
restrictedLevels: *[] |
|
public |
timer: * |
Method Summary
Public Methods | ||
public |
destroy() |
|
public |
|
|
public |
getMaxLevel(capLevelIndex: *): * |
|
public |
onFpsDropLevelCapping(data: *) |
|
public |
onManifestParsed(data: *) |
|
public |
onMediaAttaching(data: *) |
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 Members
public static get contentScaleFactor: * source
Static Public Methods
public static getMaxLevelByMediaSize(levels: *, width: *, height: *): * source
Params:
Name | Type | Attribute | Description |
levels | * | ||
width | * | ||
height | * |
Return:
* |
public static isLevelAllowed(level: *, restrictedLevels: *[]): * source
Params:
Name | Type | Attribute | Description |
level | * | ||
restrictedLevels | *[] |
|
Return:
* |
Public Constructors
Public Members
public autoLevelCapping: * source
public levels: * source
public media: * source
public get mediaHeight: * source
public get mediaWidth: * source
public restrictedLevels: *[] source
public timer: * source
Public Methods
public detectPlayerSize() source
public getMaxLevel(capLevelIndex: *): * source
Params:
Name | Type | Attribute | Description |
capLevelIndex | * |
Return:
* |
public onFpsDropLevelCapping(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onManifestParsed(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |
public onMediaAttaching(data: *) source
Params:
Name | Type | Attribute | Description |
data | * |