Use Player.tech--.vhs Instead !!top!! — Videojs Warn Player.tech--.hls Is Deprecated.
const currentLevel = player.tech_.hls.currentLevel; console.log(`Current bitrate level: $currentLevel`);
const levels = player.tech_.vhs.levels; levels.forEach((level, idx) => console.log(`Level $idx: $level.heightp`); ); const currentLevel = player
// Deprecated var player = videojs('my-video', html5: hls: withCredentials: true ); // Correct var player = videojs('my-video', html5: vhs: withCredentials: true ); Use code with caution. Copied to clipboard Quick Troubleshooting const currentLevel = player.tech_.hls.currentLevel
Historically, videojs-contrib-hls was the dedicated plugin for HLS playback in Video.js. However, as MPEG-DASH grew in popularity, the development team realized that HLS and DASH could share much of the same core logic. The result was , which: console.log(`Current bitrate level: $currentLevel`)
The warning does not crash the page, but it clutters the console, and future Video.js updates may remove .hls altogether.
