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

  • Used in more than 180 countries
  • 85,000+ Internet Cafes
  • 7 million visitors every day
  • Most popular internet cafe software

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

: Renaming the property to vhs allows Video.js to add support for new streaming formats without needing separate "tech" objects for each. How to Fix the Warning

Replace any direct references to player.tech_.hls with player.tech_.vhs :

Update all Video.js related plugins to their latest versions.

var player = videojs('my-video'); player.ready(function() // This triggers the warning var hls = player.tech().hls; console.log(hls.playlists.master); ); Use code with caution. javascript : Renaming the property to vhs allows Video

var vhs = player.tech_.vhs; // do something with vhs...

The player.tech--.hls is deprecated warning is a signal to update your video infrastructure to the modern standard. By ensuring you are using a modern version of Video.js and allowing it to utilize , you gain better performance, better support for adaptive streaming, and long-term compatibility.

<script src="https://vjs.zencdn.net/7.20.3/video.js"></script> <script> var player = videojs('my-video'); player.src( src: 'https://example.com/stream.m3u8', type: 'application/x-mpegURL' ); </script> javascript var vhs = player

Open your browser's developer tools and look at the attached to the warning. Identify which script or library is triggering the call.

This warning indicates that the player.tech_.hls property is no longer recommended and will be removed in future versions of Video.js.

);

);

If you are programmatically interacting with the streaming tech (e.g., checking playlists or quality levels), change your accessors: javascript

indicates that your code or a plugin is accessing the HLS (HTTP Live Streaming) engine using an outdated property name. This change occurred because Video.js HTTP Streaming (VHS) has replaced the older videojs-contrib-hls Report: Deprecation of player.tech().hls 1. Reason for the Change &lt;script src="https://vjs