import CapLevelController from 'hls.js/src/controller/cap-level-controller.ts'
CapLevelController
Static Method Summary
Static Public Methods | ||
public static |
getMaxLevelByMediaSize(levels: Array, width: number, height: number): number |
|
public static |
isLevelAllowed(level: number, restrictedLevels: Array): boolean |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
clientRect: * |
|
public get |
|
|
public |
|
|
public |
|
|
public |
media: * |
|
public get |
|
|
public get |
|
|
public |
|
|
public |
|
|
public |
timer: * |
Method Summary
Public Methods | ||
public |
destroy() |
|
public |
|
|
public |
getDimensions(): * |
|
public |
getMaxLevel(capLevelIndex: number): number |
|
public |
onBufferCodecs(event: undefined, data: BufferCodecsData) |
|
public |
onFpsDropLevelCapping(event: undefined, data: FPSDropLevelCappingData) |
|
public |
onManifestParsed(event: undefined, data: ManifestParsedData) |
|
public |
onMediaAttaching(event: undefined, data: MediaAttachingData) |
|
public |
|
|
public |
|
|
public |
setStreamController(streamController: StreamController) |
|
public |
|
|
public |
|
|
public |
|
Static Public Methods
Public Constructors
public constructor() source
Public Members
public clientRect: * source
public media: * source
public streamController: StreamController source
public timer: * source
Public Methods
public destroy() source
public detectPlayerSize() source
public getMaxLevel(capLevelIndex: number): number source
Params:
Name | Type | Attribute | Description |
capLevelIndex | number |
public onBufferCodecs(event: undefined, data: BufferCodecsData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | BufferCodecsData |
public onFpsDropLevelCapping(event: undefined, data: FPSDropLevelCappingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | FPSDropLevelCappingData |
public onManifestParsed(event: undefined, data: ManifestParsedData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | ManifestParsedData |
public onMediaAttaching(event: undefined, data: MediaAttachingData) source
Params:
Name | Type | Attribute | Description |
event | undefined | ||
data | MediaAttachingData |
public onMediaDetaching() source
public registerListeners() source
public setStreamController(streamController: StreamController) source
Params:
Name | Type | Attribute | Description |
streamController | StreamController |