Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead -
This warning occurs because videojs-contrib-hls has been deprecated and replaced by videojs-http-streaming (VHS). While the library still provides backward compatibility, it now encourages developers to use the vhs namespace for modern streaming features like HLS and DASH. Why the Change?
Therefore, you have a grace period. But not updating is a technical debt that will eventually cause your player to fail for users when the alias is removed. const hls = this.player.tech_['hls']
The "player.tech().hls is deprecated" warning in Video.js indicates a transition to the newer Video.js HTTP Streaming (VHS) engine for handling HLS and DASH formats. To resolve this, developers must replace references of player.tech().hls player.tech().vhs // warning )
ngAfterViewInit()
this.player = videojs(this.videoElement.nativeElement);
this.player.ready(() =>
const hls = this.player.tech_['hls']; // warning
);