mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 13:51:20 -08:00
add Artplayer.SEEK_STEP
This commit is contained in:
1 parent
2ba636f3c7
commit
92ad45b976
25 files changed
+274
-309
No files matched your search
@@ -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());
|
||||
},
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -21,8 +21,8 @@ export default class Control extends Component {
|
||||
this.name = 'control';
|
||||
|
||||
const {
|
||||
proxy,
|
||||
constructor,
|
||||
events: { proxy },
|
||||
template: { $player },
|
||||
} = art;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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', () => {
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user