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

Once you’ve migrated from .hls to .vhs , consider adopting these best practices:

const vhs = player.tech().vhs; vhs.currentLevel = 2;

Better yet, conditionally filter the specific warning: Once you’ve migrated from

Better: Update your code and use .vhs .

The warning appears in the browser console. But finding where your code or a third-party plugin is accessing .hls can be tricky. Some Video

Some Video.js internal modules may still trigger it. Double-check that:

To resolve this, you must update your JavaScript code wherever you are programmatically interacting with the HLS stream's runtime properties. Old Code (Deprecated): javascript hls = player.tech().hls; playlist = player.tech( IWillNotUseThisInPlugins: ).hls.playlists.media(); Use code with caution. Copied to clipboard New Code (Recommended): javascript // Access the VHS object instead vhs = player.tech().vhs; // Example: Accessing representations or quality levels (vhs) console.log(vhs.representations()); Use code with caution. Copied to clipboard Verification : Ensure the Copied to clipboard New Code (Recommended): javascript //

Upgrading from HLS to VHS in Video.js is relatively straightforward. Here are the steps you can follow:

var hls = player.tech_.hls; console.log('Current playlist:', hls.playlists.master); Use code with caution. javascript

The warning is a – your code will still work for now, but you are strongly encouraged to update your code.

Still need help? Contact Us Contact Us