🔍

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

Fix for "player.tech_.hls is deprecated" Warning

If you’ve recently seen the console warning you are encountering a transition that began with the release of Video.js 7 . This warning is part of a move to unify streaming technologies under a single engine. Why is player.tech.hls Deprecated? Fix for "player

For HLS streaming, browsers do not natively support .m3u8 playlists. To solve this, Video.js uses a that intercepts the stream, transmuxes it into something the HTML5 video element can understand (usually MP4 fragments), and feeds the data to the native player. const hlsTech = this.player.tech_.hls

mounted() this.player = videojs(this.$refs.video); this.player.ready(() => const hlsTech = this.player.tech_.hls; // warning ); // warning )

Unix   Теги:

Читать IT-новости в Telegram
Информационные технологии
Мы в соцсетях ✉