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

While a console warning does not immediately crash your application, leaving deprecated code in production carries significant risks:

This is not an error – your HLS stream might still play correctly. However, it's a strong indication that you should update your implementation. The warning is logged by Video.js's internal deprecation system, usually triggered by:

VHS allows you to tap into the representation list to see what video qualities are available to the user's browser. javascript While a console warning does not immediately crash

Clear your browser cache and reload the page. Open DevTools and ensure the deprecation warning no longer appears.

var player = videojs('my-video', vhs: withCredentials: true, handleManifestRedirects: true javascript Clear your browser cache and reload the page

If you are seeing the warning it is because your code is still using the older videojs-contrib-hls naming convention.

var player = videojs('my-video', html5: hls: overrideNative: true ); Use code with caution. javascript var player = videojs('my-video'

player.tech_.hls.representations().forEach(function(rep) console.log(rep.width, rep.height); );

That alias is what triggers the warning. The code inside VHS does something like: