Refactor Artplayer class to update build timestamp

This commit is contained in:
Harvey Zack committed 2024-10-20 15:06:06 +08:00
1 parent fbfee926ca
commit 0ddb7751a1
4 files changed
+12 -2

No files matched your search

@@ -187,6 +187,7 @@ function artplayerPluginHlsControl(option = {}) {
art.loading.show = true;
art.notice.show = `${title}: ${item.html}`;
art.emit("artplayerPluginHlsControl:quality", item);
for(let index = 0; index < selector.length; index++)selector[index].default = selector[index] === item;
return item.html;
};
if (config.control) art.controls.update({
@@ -245,6 +246,7 @@ function artplayerPluginHlsControl(option = {}) {
art.loading.show = true;
art.notice.show = `${title}: ${item.html}`;
art.emit("artplayerPluginHlsControl:audio", item);
for(let index = 0; index < selector.length; index++)selector[index].default = selector[index] === item;
return item.html;
};
if (config.control) art.controls.update({