Hls quality (#409)

* update docs
This commit is contained in:
Harvey Zack authored and GitHub committed 2022-10-27 15:30:47 +08:00
1 parent 431a8642f6
commit 97c73c1115
82 files changed
+711 -171

No files matched your search

@@ -63,6 +63,13 @@ var art = new Artplayer({
hls.destroy();
}
// When the player is destroyed, the decoder instance must also be destroyed
art.on('destroy', () => {
if (hls) {
hls.destroy();
}
});
hls = new Hls();
hls.loadSource(url);
hls.attachMedia(video);