Skip to Content

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

const hls = player.tech_.hls; to:

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

grep -r "tech_.hls" --include="*.js" --include="*.vue" --include="*.ts" Simply rename the property access. Change: const hls = player.tech_.hls

The short answer is:

Skip to Instructions