Videojs Warn Player.tech--.hls Is — Deprecated. Use Player.tech--.vhs Instead !!top!!
VIDEOJS: WARN: player.tech_.hls is deprecated. use player.tech_.vhs instead
var player = videojs('my-video', techOrder: ['html5'], // VHS operates within the HTML5 tech html5: vhs: overrideNative: true // Optional: Use VHS even if browser supports HLS natively ); Use code with caution. 4. What If I Can't Upgrade Immediately?
If you were explicitly checking for, or setting configurations on, the old HLS tech, you need to transition to vhs . javascript player.hls(); // Or directly accessing player.tech().hls Use code with caution. VIDEOJS: WARN: player
VIDEOJS: WARN: player.tech--.hls is deprecated. use player.tech--.vhs instead
useEffect(() => const player = videojs(ref.current); player.ready(() => const hls = player.tech_.hls; // Deprecated ); , []); What If I Can't Upgrade Immediately
const currentLevel = player.tech_.vhs.currentLevel; console.log(`Current bitrate level: $currentLevel`);
If you are a developer working with web video, you are likely familiar with , the standard open-source library for building HTML5 video players. While upgrading or maintaining a project, you may have noticed a warning in your browser console: const player = videojs(ref.current)
If you’ve recently seen the console warning you are encountering a transition that began with the release of Video.js 7 . This warning is part of a move to unify streaming technologies under a single engine. Why is player.tech.hls Deprecated?