Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead Patched
To resolve this, you need to update how you access the streaming technology object and how you configure your player options. 1. Update Programmatic Access
If you are accessing playback data (like playlists or bitrates) via the player's tech, change hls to vhs . player.tech().hls Recommended: player.tech().vhs Example: javascript To resolve this, you need to update how
Historically, videojs-contrib-hls was a separate plugin required to play HLS content in browsers without native support. With the release of Video.js 7, the core team introduced , a unified engine that supports both HLS and DASH. player
var player = videojs('my-video'); player.ready(function() // Use vhs (VideoJS HTTP Streaming) instead var vhs = player.tech().vhs; if (vhs) console.log(vhs.playlists.master); ); Use code with caution. Copied to clipboard 🤔 Why is this happening? Copied to clipboard 🤔 Why is this happening
var vhs = player.tech().vhs; console.log(vhs.playlists.main); // Note: 'master' is often now 'main' Use code with caution. 2. Update Initialization Options
Fingers flying, she changed the player configuration: