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

videojs warn player.tech().hls is deprecated. use player.tech().vhs instead

The warning occurs because Video.js transitioned its underlying streaming engine from a dedicated HLS library to the more versatile Video.js HTTP Streaming (VHS) engine. Why the Change?

If you switch to .vhs and it returns undefined , check the following: videojs-http-streaming (VHS) - GitHub

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 videojs warn player

The Problem:

The warning videojs warn player.tech_.hls is deprecated. use player.tech_.vhs instead occurs because Video.js has updated its internal handling of HTTP Live Streaming (HLS).

When you see this warning, it means somewhere in your JavaScript code (or an external plugin), you are accessing: Future Breakage : As Video

Old Configuration:

If you are passing specific HLS configurations in your player setup, move them under the vhs key: javascript

  1. Future Breakage: As Video.js continues to evolve, the hls tech may be removed, causing playback issues or breaking existing integrations.
  2. Limited Support: Deprecation means that bug fixes, new features, and support for the hls tech will be limited or discontinued.

Body:

Please be advised that the property player.tech_.hls is now deprecated and will be removed in a future version of Video.js. Developers accessing the HLS handler directly should update their code to use the new property: player.tech_.vhs . Body: Please be advised that the property player

var player = videojs('my-video'); player.ready(function() // Use .vhs instead var vhs = player.tech().vhs; if (vhs) console.log(vhs.playlists.master); ); Use code with caution. 2. Update Configuration Options