Регистрация
Москва многоканальный
+7 (495) 727-37-16
Мобильный
+7 (926) 533-34-53
м. Алексеевская, ИНБОКС
1-я Мытищинская улица, 27, стр. 2

Все товары
+7 495 727-37-16
+7 926 533-34-53
Корзина пуста

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

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