mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21:20 -08:00
update danmuku setting
This commit is contained in:
1 parent
59f7a88e51
commit
642a2ac1a9
3 files changed
+53
-45
No files matched your search
@@ -796,28 +796,6 @@ function setting(art, danmuku) {
|
||||
name: 'danmuku',
|
||||
html: '弹幕设置',
|
||||
selector: [
|
||||
{
|
||||
html: '弹幕防重叠',
|
||||
icon: '',
|
||||
switch: danmuku.option.antiOverlap,
|
||||
onSwitch (item) {
|
||||
danmuku.config({
|
||||
antiOverlap: !item.switch
|
||||
});
|
||||
return !item.switch;
|
||||
}
|
||||
},
|
||||
{
|
||||
html: '同步视频速度',
|
||||
icon: '',
|
||||
switch: danmuku.option.synchronousPlayback,
|
||||
onSwitch (item) {
|
||||
danmuku.config({
|
||||
synchronousPlayback: !item.switch
|
||||
});
|
||||
return !item.switch;
|
||||
}
|
||||
},
|
||||
{
|
||||
width: 200,
|
||||
html: '播放速度',
|
||||
@@ -965,6 +943,32 @@ function setting(art, danmuku) {
|
||||
});
|
||||
return item.html;
|
||||
}
|
||||
},
|
||||
{
|
||||
html: '弹幕防重叠',
|
||||
icon: '',
|
||||
tooltip: danmuku.option.antiOverlap ? '开启' : '关闭',
|
||||
switch: danmuku.option.antiOverlap,
|
||||
onSwitch (item) {
|
||||
danmuku.config({
|
||||
antiOverlap: !item.switch
|
||||
});
|
||||
item.tooltip = item.switch ? '关闭' : '开启';
|
||||
return !item.switch;
|
||||
}
|
||||
},
|
||||
{
|
||||
html: '同步视频速度',
|
||||
icon: '',
|
||||
tooltip: danmuku.option.synchronousPlayback ? '开启' : '关闭',
|
||||
switch: danmuku.option.synchronousPlayback,
|
||||
onSwitch (item) {
|
||||
danmuku.config({
|
||||
synchronousPlayback: !item.switch
|
||||
});
|
||||
item.tooltip = item.switch ? '关闭' : '开启';
|
||||
return !item.switch;
|
||||
}
|
||||
},
|
||||
]
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user