添加hls.js演示

This commit is contained in:
Harvey Zack committed 2018-11-24 22:26:26 +08:00
1 parent 63c178e177
commit 7c3f7f2696
14 files changed
+194 -119

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
var art = new Artplayer({
container: '.artplayer-app',
url: 'https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8',
customType: {
m3u8: function(video, url) {
var hls = new Hls();
hls.loadSource(url);
hls.attachMedia(video);
},
},
});