| Old ( player.tech_.hls ) | New ( player.tech_.vhs ) | | --- | --- | | Tied to videojs-contrib-hls | Part of @videojs/http-streaming (VHS) | | Only HLS support | HLS + DASH + future protocols | | Heavier, less modular | Lighter, better performance | | Legacy API methods inconsistent | Cleaner, unified API | | No longer actively maintained (old repo) | Actively developed by Video.js core team |
Given the slow-moving nature of major video player upgrades, you likely have after the v9 release notice. Nevertheless, fixing the warning today takes less than an hour for most codebases and eliminates a future bug. | Old ( player
var hls = player.tech().hls; console.log(hls.playlists.master); Use code with caution. javascript javascript If you are passing options to the
If you are passing options to the HLS source handler during setup, update the key in your options object: javascript It’s not meant for public API use, but
: If you haven't manually added hls to your code but still see the warning, it may be coming from a third-party plugin (like Mux Data) that hasn't been updated to the latest Video.js API.
You might wonder why we use tech_ (with an underscore). The tech_ property is internal to Video.js and represents the underlying playback technology (like HTML5, Flash—though Flash is dead, or native HLS). It’s not meant for public API use, but it’s often the only way to access advanced stream methods.