update docs

This commit is contained in:
Harvey committed 2022-10-12 13:32:04 +08:00
1 parent ba1dd88050
commit 38a424c10b
45 files changed
+141 -147

No files matched your search

@@ -53,13 +53,10 @@ var art = new Artplayer({
const hls = new Hls();
hls.loadSource(url);
hls.attachMedia(video);
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = url;
} else {
const canPlay = video.canPlayType('application/vnd.apple.mpegurl');
if (canPlay === 'probably' || canPlay === 'maybe') {
video.src = url;
} else {
art.notice.show = 'Does not support playback of m3u8';
}
art.notice.show = 'Does not support playback of m3u8';
}
},
},
@@ -53,13 +53,10 @@ var art = new Artplayer({
const hls = new Hls();
hls.loadSource(url);
hls.attachMedia(video);
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = url;
} else {
const canPlay = video.canPlayType('application/vnd.apple.mpegurl');
if (canPlay === 'probably' || canPlay === 'maybe') {
video.src = url;
} else {
art.notice.show = '不支持播放格式:m3u8';
}
art.notice.show = '不支持播放格式:m3u8';
}
},
},