* update artplayer.d.ts

* update variables.less

* update artplayerPluginControl

* build:all

* update docs

* update docs

* update docs

* Update layers.md

* update index.js

* update docs

* update docs
This commit is contained in:
Harvey Zack authored and GitHub committed 2023-04-23 13:50:30 +08:00
1 parent c8c08137c4
commit ee49a0435e
202 files changed
+5293 -3466

No files matched your search

-15
View File
@@ -55,21 +55,6 @@ var art = new Artplayer({
state: '<img width="150" heigth="150" src="/assets/img/state.svg">',
indicator: '<img width="16" heigth="16" src="/assets/img/indicator.svg">',
},
settings: [
{
html: 'Control UI',
icon: '<img width="22" heigth="22" src="/assets/img/state.svg">',
tooltip: 'OFF',
switch: true,
onSwitch: async function (item) {
item.tooltip = item.switch ? 'OFF' : 'ON';
art.plugins.artplayerPluginControl.enable = !item.switch;
await Artplayer.utils.sleep(300);
art.setting.updateStyle();
return !item.switch;
},
},
],
plugins: [
artplayerPluginControl()
],