Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead 🔥 Tested
Step 3 — Update player initialization
const vhs = player.tech_.vhs;
HLS (HTTP Live Streaming) is a widely used protocol for live and on-demand video streaming. In Video.js, HLS playback is facilitated through the hls tech. However, with the introduction of VHS (Video.js HLS Shim), a more efficient and feature-rich solution for HLS playback, the hls tech has been marked as deprecated. Step 3 — Update player initialization const vhs = player
Also test on (Chrome, Firefox, Safari – especially important for HLS). Also test on (Chrome, Firefox, Safari – especially
The warning videojs warn player.tech--.hls is deprecated. use player.tech--.vhs instead is more of a than an emergency. However, ignoring it means your code relies on a deprecated alias that could vanish without notice in a next major Video.js release. However, ignoring it means your code relies on
Change those occurrences to:
var player = videojs( 'my-video' , html5: hls: overrideNative: true ); Use code with caution. Copied to clipboard javascript