mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
修复切换画质bug
This commit is contained in:
1 parent
d4b9fc4d29
commit
88533c1023
8 files changed
+116
-138
No files matched your search
@@ -34,7 +34,7 @@ export default class Quality {
|
||||
const index = Number(event.target.dataset.index);
|
||||
const { url, name } = option.quality[index];
|
||||
if (url && name && this.playIndex !== index) {
|
||||
player.switch(url, name);
|
||||
player.switchQuality(url, name);
|
||||
$qualityName.innerHTML = name;
|
||||
this.playIndex = index;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user