Home Reference Source
import CapLevelController from 'hls.js/src/controller/cap-level-controller.ts'
public class | source

CapLevelController

Static Member Summary

Static Public Members
public static get

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
public
public

hls: *

public

media: *

public get
public get
public
public
public

timer: *

Method Summary

Public Methods
public
public
public
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
public
public
public

Static Public Members

public static get contentScaleFactor: number source

Static Public Methods

public static getMaxLevelByMediaSize(levels: Array, width: number, height: number): number source

Params:

NameTypeAttributeDescription
levels Array
width number
height number

Return:

number

public static isLevelAllowed(level: number, restrictedLevels: Array): boolean source

Params:

NameTypeAttributeDescription
level number
restrictedLevels Array

Return:

boolean

Public Constructors

public constructor() source

Public Members

public autoLevelCapping: * source

public clientRect: * source

public firstLevel: * source

public hls: * source

public media: * source

public get mediaHeight: number source

public get mediaWidth: number source

public restrictedLevels: *[] source

public streamController: * source

public timer: * source

Public Methods

public destroy() source

public detectPlayerSize() source

public getDimensions(): * source

Return:

*

public getMaxLevel(capLevelIndex: number): number source

Params:

NameTypeAttributeDescription
capLevelIndex number

Return:

number

public onBufferCodecs(event: undefined, data: BufferCodecsData) source

Params:

NameTypeAttributeDescription
event undefined
data BufferCodecsData

public onFpsDropLevelCapping(event: undefined, data: FPSDropLevelCappingData) source

Params:

NameTypeAttributeDescription
event undefined
data FPSDropLevelCappingData

public onManifestParsed(event: undefined, data: ManifestParsedData) source

Params:

NameTypeAttributeDescription
event undefined
data ManifestParsedData

public onMediaAttaching(event: undefined, data: MediaAttachingData) source

Params:

NameTypeAttributeDescription
event undefined
data MediaAttachingData

public onMediaDetaching() source

public registerListeners() source

public setStreamController(streamController: StreamController) source

Params:

NameTypeAttributeDescription
streamController StreamController

public startCapping() source

public stopCapping() source

public unregisterListener() source