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

CapLevelController

Extends:

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

levels: *

public

media: *

public get
public get
public
public

timer: *

Method Summary

Public Methods
public
public
public

getMaxLevel(capLevelIndex: *): *

public
public

onManifestParsed(data: *)

public

onMediaAttaching(data: *)

Inherited Summary

From class EventHandler
public
public

hls: *

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

NameTypeAttributeDescription
levels *
width *
height *

Return:

*

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

Params:

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

Return:

*

Public Constructors

public constructor() source

Override:

EventHandler#constructor

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 destroy() source

Override:

EventHandler#destroy

public detectPlayerSize() source

public getMaxLevel(capLevelIndex: *): * source

Params:

NameTypeAttributeDescription
capLevelIndex *

Return:

*

public onFpsDropLevelCapping(data: *) source

Params:

NameTypeAttributeDescription
data *

public onManifestParsed(data: *) source

Params:

NameTypeAttributeDescription
data *

public onMediaAttaching(data: *) source

Params:

NameTypeAttributeDescription
data *