mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01: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
@@ -11,7 +11,7 @@ export default class Hotkey {
|
||||
}
|
||||
|
||||
init() {
|
||||
const { proxy } = this.art.events;
|
||||
const { proxy, constructor } = this.art;
|
||||
|
||||
this.add(27, () => {
|
||||
if (this.art.fullscreenWeb) {
|
||||
@@ -24,19 +24,19 @@ export default class Hotkey {
|
||||
});
|
||||
|
||||
this.add(37, () => {
|
||||
this.art.backward = 5;
|
||||
this.art.backward = constructor.SEEK_STEP;
|
||||
});
|
||||
|
||||
this.add(38, () => {
|
||||
this.art.volume += 0.1;
|
||||
this.art.volume += constructor.VOLUME_STEP;
|
||||
});
|
||||
|
||||
this.add(39, () => {
|
||||
this.art.forward = 5;
|
||||
this.art.forward = constructor.SEEK_STEP;
|
||||
});
|
||||
|
||||
this.add(40, () => {
|
||||
this.art.volume -= 0.1;
|
||||
this.art.volume -= constructor.VOLUME_STEP;
|
||||
});
|
||||
|
||||
proxy(window, 'keydown', (event) => {
|
||||
|
||||
Reference in new issue
Block a user