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

If you are seeing the warning "VIDEOJS: WARN: player.tech().hls is deprecated. Use player.tech().vhs instead," it is because your code is still using the older videojs-contrib-hls naming convention.

In most cases, it’s a straight rename. If you are seeing the warning "VIDEOJS: WARN: player

Option 1: Technical/Release Note (Best for documentation)

Title: Deprecation Notice: player.tech_.hls Property Edge cases:

What if you can’t find .hls in your code?

Don’t panic. The warning could be coming from: update your code as follows:

;
  • Edge cases:
    • v7.x – Introduced VHS and added deprecation warning for tech_.hls.
    • v8.x (current as of writing) – Warning remains. Alias still present.
    • v9.x or later – Expected removal of the alias.

    Silencing Logs: For certain edge cases where you must use the older reference, calling player.tech(true).hls may stop the large volume of console logs in some environments. videojs-http-streaming (VHS) - GitHub

    To resolve the warning and ensure your implementation is future-proof, update your code as follows: