Page Not Found
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.
diff --git a/docs/assets/example/index.js b/docs/assets/example/index.js
index 97534413c..6ed7026b9 100644
--- a/docs/assets/example/index.js
+++ b/docs/assets/example/index.js
@@ -33,7 +33,7 @@ var art = new Artplayer({
settings: [
{
width: 200,
- html: 'Switch Subtitle',
+ html: 'Subtitle',
tooltip: 'Bilingual',
icon: '',
selector: [
@@ -69,7 +69,7 @@ var art = new Artplayer({
},
},
{
- html: 'Custom Switch',
+ html: 'Switcher',
icon: '
',
tooltip: 'OFF',
switch: false,
@@ -79,6 +79,15 @@ var art = new Artplayer({
return !item.switch;
},
},
+ {
+ html: 'Slider',
+ icon: '
',
+ tooltip: '5x',
+ range: [5, 1, 10, 0.1],
+ onRange: function (item) {
+ return item.range + 'x';
+ },
+ },
],
contextmenu: [
{
diff --git a/docs/assets/ts/artplayer.d.ts b/docs/assets/ts/artplayer.d.ts
index 3c48efa01..eec2a93b9 100644
--- a/docs/assets/ts/artplayer.d.ts
+++ b/docs/assets/ts/artplayer.d.ts
@@ -115,6 +115,16 @@ type SettingOption = {
* When switch item click
*/
onSwitch?(item: SettingOption, element: HTMLElement, event: Event): void;
+
+ /**
+ * Custom range item
+ */
+ range?: number[];
+
+ /**
+ * When range item change
+ */
+ onRange?(item: SettingOption, element: HTMLElement, event: Event): void;
};
type Component = {
diff --git a/docs/document/404.html b/docs/document/404.html
index f62f14f92..cc0bd8df5 100644
--- a/docs/document/404.html
+++ b/docs/document/404.html
@@ -5,13 +5,13 @@
We could not find what you were looking for.
Please contact the owner of the site that linked you to the original URL and let them know their link is broken.