MCPcopy
hub / github.com/clappr/clappr / _fillLevels

Method _fillLevels

packages/hlsjs-playback/src/hls.js:595–600  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

593 }
594
595 _fillLevels() {
596 this._levels = this._hls.levels.map((level, index) => {
597 return { id: index, level: level, label: `${level.bitrate / 1000}Kbps` }
598 })
599 this.trigger(Events.PLAYBACK_LEVELS_AVAILABLE, this._levels)
600 }
601
602 _onLevelUpdated(evt, data) {
603 this._segmentTargetDuration = data.details.targetduration

Callers 2

_onLevelSwitchMethod · 0.95
hls.test.jsFile · 0.45

Calls 1

triggerMethod · 0.80

Tested by

no test coverage detected