mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 20:21:20 -08:00
update demo
This commit is contained in:
1 parent
97c73c1115
commit
46de63b86e
57 files changed
+227
-177
No files matched your search
@@ -44,7 +44,7 @@ art.url = '/assets/sample/video.mpd';
|
||||
|
||||
:::tip Tip
|
||||
|
||||
If `customType` is used, the previous decoder instance must be destroyed before switching addresses, otherwise memory leakage will occur
|
||||
If `customType` is used, the previous decoder instance must be destroyed before switching url, otherwise memory leakage will occur
|
||||
|
||||
:::
|
||||
|
||||
@@ -58,7 +58,7 @@ var art = new Artplayer({
|
||||
m3u8: async function (video, url) {
|
||||
const { default: Hls } = await import('hls.js');
|
||||
|
||||
// Destroy the last decoder instance before switching addresses
|
||||
// Destroy the last decoder instance before switching url
|
||||
if (hls) {
|
||||
hls.destroy();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user