添加滑动设置

This commit is contained in:
Harvey Zack committed 2022-05-15 17:49:46 +08:00
1 parent 4c12972101
commit fc978e9d85
54 files changed
+462 -205

No files matched your search

+11 -2
View File
@@ -33,7 +33,7 @@ var art = new Artplayer({
settings: [
{
width: 200,
html: 'Switch Subtitle',
html: 'Subtitle',
tooltip: 'Bilingual',
icon: '<img width="22" heigth="22" src="/assets/img/subtitle.svg">',
selector: [
@@ -69,7 +69,7 @@ var art = new Artplayer({
},
},
{
html: 'Custom Switch',
html: 'Switcher',
icon: '<img width="22" heigth="22" src="/assets/img/state.svg">',
tooltip: 'OFF',
switch: false,
@@ -79,6 +79,15 @@ var art = new Artplayer({
return !item.switch;
},
},
{
html: 'Slider',
icon: '<img width="22" heigth="22" src="/assets/img/state.svg">',
tooltip: '5x',
range: [5, 1, 10, 0.1],
onRange: function (item) {
return item.range + 'x';
},
},
],
contextmenu: [
{