Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead Jun 2026
Simply replace all occurrences of .hls with .vhs . Make sure you are using the latest videojs and @videojs/http-streaming packages.
var player = videojs( 'my-video' , html5: hls: overrideNative: true ); Use code with caution. Copied to clipboard javascript Simply replace all occurrences of
const currentLevel = player.tech_.vhs.currentLevel; console.log(`Current bitrate level: $currentLevel`); html5: hls: overrideNative: true )
Since Video.js 7, the player uses a unified engine called (Video.js HTTP Streaming) to handle both HLS and DASH streams. This change ensures a more consistent API regardless of the streaming protocol being used. How to Fix the Deprecation Warning console.log(`Current bitrate level: $currentLevel`)