mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
update docs
This commit is contained in:
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';
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user