Videojs Warn Player.tech--.hls Is Deprecated. Use Player.tech--.vhs Instead [cracked] -
Video.js
This warning appears in projects using with the videojs-contrib-hls (or similar HLS playback) library.
1. Introduction
player.tech().hls is deprecated. Use player.tech().vhs instead #2 You use player
videojs-contrib-hls
Historically, Video.js used a dedicated plugin called to play HLS video. Using VHS provides a more uniform experience across
- You use
player.tech_.hlsdirectly in your own code. - A third‑party plugin you included tries to access
.hls. - You are debugging HLS quality levels, sub‑titles, or seeking into live streams.
Using VHS provides a more uniform experience across browsers by overriding unreliable native implementations when possible. ⚠️ Special Case: Safari and Mobile Note that on Safari (macOS/iOS) , Video.js often defaults to the browser's native HLS engine rather than VHS. In these cases, player.tech().vhs may return player.tech().vhs may return