Here are a few options for the text, depending on where you need to use it (e.g., a developer release note, a console error explanation, or a support ticket).

player.tech().hls is deprecated. Use player.tech().vhs instead #2

let seekable = player.tech_.vhs.seekable();
player.tech_.vhs.on('mediaqualitychange', function() 
  console.log('Quality changed');
);
  • player.tech_.hls
  • player.tech().hls
  • Any variable assigned via tech_.hls

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.

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?

  • Consult the VHS docs for exact option names for your version.
  • Pro tip: If there’s a public method on the player for what you need (e.g., player.currentTime()), always prefer that over player.tech_.vhs. Use tech_.vhs only when absolutely necessary.

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

    Here are a few options for the text, depending on where you need to use it (e.g., a developer release note, a console error explanation, or a support ticket).

    player.tech().hls is deprecated. Use player.tech().vhs instead #2 Here are a few options for the text,

    let seekable = player.tech_.vhs.seekable();
    player.tech_.vhs.on('mediaqualitychange', function() 
      console.log('Quality changed');
    );
    
    • player.tech_.hls
    • player.tech().hls
    • Any variable assigned via tech_.hls

    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. player

    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? HLS (HTTP Live Streaming) is a widely used

  • Consult the VHS docs for exact option names for your version.
  • Pro tip: If there’s a public method on the player for what you need (e.g., player.currentTime()), always prefer that over player.tech_.vhs. Use tech_.vhs only when absolutely necessary.