mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-10 04:36:15 -08:00
11 lines
306 B
JavaScript
11 lines
306 B
JavaScript
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);
|
|
},
|
|
},
|
|
}); |