Player.tech--.vhs Instead — Videojs Warn Player.tech--.hls Is Deprecated. Use
The warning "videojs warn player.tech--.hls is deprecated. use player.tech--.vhs instead"
- Separate HLS-specific parsing and segment loaders.
- Often packaged as an external plugin; communication with Video.js via tech API shim.
- Inconsistent use of MSE and browser-native HLS fallbacks.
var player = videojs('my-video', html5: hls: overrideNative: true ); Use code with caution. New (Correct): javascript The warning "videojs warn player
videojs.log.history();
videojs.log.level('error'); // hides warnings (not recommended for prod)
This isn’t a critical error—your video will likely still play—but it’s an important signal that your code needs a refresh. Let’s break down what this warning means and how to fix it. Separate HLS-specific parsing and segment loaders
VHS has been built directly into Video.js since version 7, removing the need for external HLS plugins in most cases 🛠️ Implementation Guide 1. Initializing Options a developer release note
Deprecation Warning in Video.js: Time to Move from hls to vhs
If you’ve recently updated your version of Video.js (specifically videojs-contrib-hls or the core player with http-streaming), you might have noticed a new warning in your browser’s console:
: If the warning appears during initialization, update your configuration object: javascript // Change this: player = videojs( 'my-player' , { html5: { hls: { overrideNative: // To this: player = videojs( 'my-player' , { html5: { vhs: { overrideNative: Use code with caution. Copied to clipboard Third-Party Plugins : If you aren't calling
Here are a few options for the text, depending on where you need to use it (e.g., a developer release note, a console error explanation, or a support ticket).
English
Deutsch
Español
Русский язык