Update 7.html

This commit is contained in:
Harvey Zack committed 2018-12-17 14:26:25 +08:00
1 parent e0d2ffe0bf
commit d0110453c0
1 file changed
+3 -4
+3 -4
View File
@@ -45,13 +45,12 @@
url: 'https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8',
customType: {
m3u8: function(video, url) {
console.log('------hls开始');
console.log('video', video);
console.log('url', url);
var hls = new Hls();
hls.loadSource(url);
hls.attachMedia(video);
console.log('------hls结束');
if (!video.src) {
video.src = url;
}
},
},
}