add Artplayer.SEEK_STEP

This commit is contained in:
Harvey committed 2022-09-20 14:43:18 +08:00
1 parent 2ba636f3c7
commit 92ad45b976
25 files changed
+274 -309

No files matched your search

+1 -5
View File
@@ -5,11 +5,7 @@ export default function pip(option) {
...option,
tooltip: art.i18n.get('AirPlay'),
mounted: ($control) => {
const {
events: { proxy },
icons,
} = art;
const { proxy, icons } = art;
append($control, icons.airplay);
proxy($control, 'click', () => art.airplay());
},
+1 -5
View File
@@ -5,11 +5,7 @@ export default function fullscreen(option) {
...option,
tooltip: art.i18n.get('Fullscreen'),
mounted: ($control) => {
const {
events: { proxy },
icons,
i18n,
} = art;
const { proxy, icons, i18n } = art;
const $fullscreenOn = append($control, icons.fullscreenOn);
const $fullscreenOff = append($control, icons.fullscreenOff);
@@ -5,11 +5,7 @@ export default function fullscreenWeb(option) {
...option,
tooltip: art.i18n.get('Web Fullscreen'),
mounted: ($control) => {
const {
events: { proxy },
icons,
i18n,
} = art;
const { proxy, icons, i18n } = art;
const $fullscreenWebOn = append($control, icons.fullscreenWebOn);
const $fullscreenWebOff = append($control, icons.fullscreenWebOff);
+1 -1
View File
@@ -21,8 +21,8 @@ export default class Control extends Component {
this.name = 'control';
const {
proxy,
constructor,
events: { proxy },
template: { $player },
} = art;
+1 -5
View File
@@ -5,11 +5,7 @@ export default function pip(option) {
...option,
tooltip: art.i18n.get('PIP Mode'),
mounted: ($control) => {
const {
events: { proxy },
icons,
i18n,
} = art;
const { proxy, icons, i18n } = art;
append($control, icons.pip);
@@ -4,11 +4,7 @@ export default function playAndPause(option) {
return (art) => ({
...option,
mounted: ($control) => {
const {
events: { proxy },
icons,
i18n,
} = art;
const { proxy, icons, i18n } = art;
const $play = append($control, icons.play);
const $pause = append($control, icons.pause);
+1 -5
View File
@@ -13,11 +13,7 @@ export function getPosFromEvent(art, event) {
export default function progress(options) {
return (art) => {
const {
icons,
option,
events: { proxy },
} = art;
const { icons, option, proxy } = art;
return {
...options,
+1 -4
View File
@@ -5,10 +5,7 @@ export default function screenshot(option) {
...option,
tooltip: art.i18n.get('Screenshot'),
mounted: ($control) => {
const {
events: { proxy },
icons,
} = art;
const { proxy, icons } = art;
append($control, icons.screenshot);
proxy($control, 'click', () => {
+1 -5
View File
@@ -5,11 +5,7 @@ export default function setting(option) {
...option,
tooltip: art.i18n.get('Show Setting'),
mounted: ($control) => {
const {
events: { proxy },
icons,
i18n,
} = art;
const { proxy, icons, i18n } = art;
append($control, icons.setting);
+1 -5
View File
@@ -4,11 +4,7 @@ export default function volume(option) {
return (art) => ({
...option,
mounted: ($control) => {
const {
events: { proxy },
icons,
i18n,
} = art;
const { proxy, icons, i18n } = art;
let isDroging = false;
const panelWidth = art.constructor.VOLUME_PANEL_WIDTH;