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

ngAfterViewInit() this.player = videojs(this.videoElement.nativeElement); this.player.ready(() => const hls = this.player.tech_['hls']; // warning );

Around Video.js version 7 and later, the project migrated to a new, more robust HLS library called (Video.js HLS Streaming). VHS stands for Video.js HTTP Streaming , and it supports both HLS and DASH. ngAfterViewInit() this

player.tech_.hls.representations().forEach(function(rep) console.log(rep.width, rep.height); ); const hls = this.player.tech_['hls']

To maintain backward compatibility, an alias was kept: when you wrote player.tech_.hls , it still pointed to the VHS tech for a while. Starting with certain Video.js versions (typically v7+ with updated contrib packages), using the old name triggers this deprecation warning. // warning )

player.ready(() => const vhs = player.tech_.vhs; // ✅ No warning console.log(vhs.master.uri); ); Before (causes warning):