If you’ve recently updated your version of Video.js (specifically videojs-contrib-hls or the core player with http-streaming), you might have noticed a new warning in your browser’s console:
VIDEOJS WARN: player.tech_.hls is deprecated. Use player.tech_.vhs instead. If you’ve recently updated your version of Video
This isn’t a critical error—your video will likely still play—but it’s an important signal that your code needs a refresh. Let’s break down what this warning means and how to fix it. VIDEOJS WARN: player
Because the underlying object is the same, most methods will work identically. However, double-check any methods specific to the old contrib-hls. The VHS API is largely compatible but not 100% identical. This isn’t a critical error—your video will likely
Old:
var representations = player.tech_.hls.representations();
representations[2].enabled(true);
New:
var representations = player.tech_.vhs.representations();
representations[2].enabled(true);
Migrating from player.tech--.hls to player.tech--.vhs aligns projects with the actively maintained VHS stack, reduces technical debt, and improves feature support. The migration is primarily a dependency and configuration change, usually requiring minimal code updates beyond mapping legacy options and event handlers. Proper testing and staged rollout mitigate risk.