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

CapLevelController

Extends:

src/event-handler.js~EventHandler → CapLevelController

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
public

levels: *[]

public

media: *

public get
public get
public
public

timer: *

Method Summary

Public Methods
public
public
public

getMaxLevel(capLevelIndex: *): *

public

onBufferCodecs(data: *)

public
public

onLevelsUpdated(data: *)

public

onManifestParsed(data: *)

public

onMediaAttaching(data: *)

public
public
public

Static Public Members

public static get contentScaleFactor: * source

Static Public Methods

public static getMaxLevelByMediaSize(levels: *, width: *, height: *): * source

Params:

NameTypeAttributeDescription
levels *
width *
height *

Return:

*

public static isLevelAllowed(level: *, restrictedLevels: *[]): * source

Params:

NameTypeAttributeDescription
level *
restrictedLevels *[]
  • optional
  • default: []

Return:

*

Public Constructors

public constructor() source

Public Members

public autoLevelCapping: * source

public firstLevel: * source

public levels: *[] source

public media: * source

public get mediaHeight: * source

public get mediaWidth: * source

public restrictedLevels: *[] source

public timer: * source

Public Methods

public destroy() source

public detectPlayerSize() source

public getMaxLevel(capLevelIndex: *): * source

Params:

NameTypeAttributeDescription
capLevelIndex *

Return:

*

public onBufferCodecs(data: *) source

Params:

NameTypeAttributeDescription
data *

public onFpsDropLevelCapping(data: *) source

Params:

NameTypeAttributeDescription
data *

public onLevelsUpdated(data: *) source

Params:

NameTypeAttributeDescription
data *

public onManifestParsed(data: *) source

Params:

NameTypeAttributeDescription
data *

public onMediaAttaching(data: *) source

Params:

NameTypeAttributeDescription
data *

public onMediaDetaching() source

public startCapping() source

public stopCapping() source