player.tech().hls is deprecated. Use player.tech().vhs instead #2 8 Feb 2022 —
player.tech_.hls.on('playlistchange', function() console.log('Playlist changed'); ); player
Since Video.js 7, the player uses a unified engine called (Video.js HTTP Streaming) to handle both HLS and DASH streams. This change ensures a more consistent API regardless of the streaming protocol being used. How to Fix the Deprecation Warning function() console.log('Playlist changed')
Video.js eventually integrated streaming capabilities directly into the core library. Since Video.js 7
let seekable = player.tech_.hls.seekable(); player.tech_.hls.on('mediaqualitychange', function() console.log('Quality changed'); );
var hls = player.tech().hls; console.log(hls.playlists.master); Use code with caution. javascript