Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead «WORKING»

SKIP TO MAIN CONTENT

Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead «WORKING»

Given the slow-moving nature of major video player upgrades, you likely have after the v9 release notice. Nevertheless, fixing the warning today takes less than an hour for most codebases and eliminates a future bug.

To resolve the deprecation warning, update your code to reference the vhs property instead of hls . Given the slow-moving nature of major video player

if (player.tech() && player.tech().vhs) // Your logic here Use code with caution. Copied to clipboard 💡 Summary Given the slow-moving nature of major video player

Historically, this tech was named Hls . You accessed it via: Given the slow-moving nature of major video player

By migrating to player.tech_.vhs , you ensure your custom HLS logic remains compatible, performant, and ready for the future of Video.js.