mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
* 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
17 lines
441 B
JavaScript
17 lines
441 B
JavaScript
export default function subtitleOffset(art) {
|
|
const { i18n, icons, constructor } = art;
|
|
|
|
return {
|
|
width: constructor.SETTING_ITEM_WIDTH,
|
|
name: 'subtitle-offset',
|
|
html: i18n.get('Subtitle Offset'),
|
|
icon: icons.subtitle,
|
|
tooltip: '0s',
|
|
range: [0, -5, 5, 0.1],
|
|
onChange(item) {
|
|
art.subtitleOffset = item.range;
|
|
return item.range + 's';
|
|
},
|
|
};
|
|
}
|