Skip to content

Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead !!exclusive!! Site

Resolving this issue requires updating your source code to look for the vhs object instead of hls . 1. Update Direct Object References

While Video.js has not announced an exact version for removal, here is the historical pattern: Resolving this issue requires updating your source code

// NEW VHS events (listen on the player, not tech directly) player.on('loadedmetadata', () => {}); player.on('qualitylevelchanged', (event) => const newLevel = event.selectedQualityLevel; ); not tech directly) player.on('loadedmetadata'

The warning "videojs warn player.tech--.hls is deprecated. use player.tech--.vhs instead" is a clear signal that it's time to modernize your Video.js HLS implementation. While it may seem like a minor annoyance, addressing it now ensures your video player remains compatible with future browsers, benefits from performance improvements, and gains access to advanced streaming features like low-latency HLS. const newLevel = event.selectedQualityLevel