Historically, this tech was named Hls . You accessed it via:

player.tech_.hls.currentLevel = 2; // Switch to third quality level

const levels = player.tech_.hls.levels; levels.forEach((level, idx) => { console.log(`Level ${idx}: ${level.height}p`); });

Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead -

Historically, this tech was named Hls . You accessed it via:

player.tech_.hls.currentLevel = 2; // Switch to third quality level Historically, this tech was named Hls

const levels = player.tech_.hls.levels; levels.forEach((level, idx) => { console.log(`Level ${idx}: ${level.height}p`); }); { console.log(`Level ${idx}: ${level.height}p`)