- <script src="https://cdn.jsdelivr.net/hls.js/latest/hls.min.js"></script>
- <video id="video"></video>
- <script>
- if(Hls.isSupported()) {
- var video = document.getElementById('video');
- var hls = new Hls();
- hls.loadSource('http://www.streambox.fr/playlists/test_001/stream.m3u8');
- hls.attachMedia(video);
- hls.on(Hls.Events.MANIFEST_PARSED,function() {
- video.play();
- });
- }
- </script>
版權(quán)聲明:文章圖片資源來(lái)源于網(wǎng)絡(luò),如有侵權(quán),請(qǐng)留言刪除!!!
評(píng)論