Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead May 2026
const hls = player.tech_.hls; to:
const currentLevel = player.tech_.hls.currentLevel; console.log(`Current bitrate level: ${currentLevel}`); const hls = player
grep -r "tech_.hls" --include="*.js" --include="*.vue" --include="*.ts" Simply rename the property access. Change: Is your player about to break
player.tech_.hls.currentLevel = 2; // Switch to third quality level The code inside VHS does something like:
The short answer is:
If you have been developing HTML5 video players using Video.js, particularly those handling HTTP Live Streaming (HLS), you have likely encountered a warning in your browser's console that looks something like this: VIDEOJS: WARN: player.tech_.hls is deprecated. use player.tech_.vhs instead At first glance, this warning can be alarming, especially if your custom player logic relies on accessing the underlying HLS technology. Is your player about to break? Do you need to rewrite large portions of your codebase?
That alias is what triggers the warning. The code inside VHS does something like:
