Home > hls.js > CapLevelController

CapLevelController class

Signature:

declare class CapLevelController implements ComponentAPI 

Implements: ComponentAPI

Constructors

Constructor

Modifiers

Description

(constructor)(hls)

Constructs a new instance of the CapLevelController class

Properties

Property

Modifiers

Type

Description

contentScaleFactor

readonly

number

mediaHeight

readonly

number

mediaWidth

readonly

number

Methods

Method

Modifiers

Description

destroy()

detectPlayerSize()

getDimensions()

getMaxLevel(capLevelIndex)

getMaxLevelByMediaSize(levels, width, height)

static

onBufferCodecs(event, data)

protected

onFpsDropLevelCapping(event, data)

protected

onManifestParsed(event, data)

protected

onMediaAttaching(event, data)

protected

onMediaDetaching()

protected

registerListeners()

protected

setStreamController(streamController)

startCapping()

stopCapping()

unregisterListener()

protected