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

  • .vhs (VHS)
  • Change those occurrences to:

    player.tech_.vhs
    // or
    player.tech().vhs
    

    Before (causes warning):

    useEffect(() => 
      const player = videojs(ref.current);
      player.ready(() => 
        const hls = player.tech_.hls; // Deprecated
      );
    , []);
    

    After:

    useEffect(() => 
      const player = videojs(ref.current);
      player.ready(() => 
        const vhs = player.tech_.vhs; // ✅ Fixed
      );
    , []);