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

Obi (Kererenke), Joey Jaey, single, song, music, music review, review

const player = videojs('my-player', { techOrder: ['vhs'], sources: [{ src: 'https://example.com/hls-stream.m3u8', type: 'application/x-mpegURL', }], });

When using Video.js with the hls tech, a warning is logged to the console:

WARN: player.tech_.hls is deprecated. Use player.tech_.vhs instead. This warning indicates that the player.tech_.hls property is no longer recommended and will be removed in future versions of Video.js.

Here's an example of how to initialize a Video.js player using the VHS tech:

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

const player = videojs('my-player', { techOrder: ['vhs'], sources: [{ src: 'https://example.com/hls-stream.m3u8', type: 'application/x-mpegURL', }], });

When using Video.js with the hls tech, a warning is logged to the console: const player = videojs('my-player'

WARN: player.tech_.hls is deprecated. Use player.tech_.vhs instead. This warning indicates that the player.tech_.hls property is no longer recommended and will be removed in future versions of Video.js. { techOrder: ['vhs']

Here's an example of how to initialize a Video.js player using the VHS tech: sources: [{ src: 'https://example.com/hls-stream.m3u8'