mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 16:11:20 -08:00
remove player object
This commit is contained in:
1 parent
59a8ccce81
commit
59400eb3bf
58 files changed
+295
-313
No files matched your search
@@ -13,29 +13,29 @@ export default class Hotkey {
|
||||
if (option.hotkey) {
|
||||
art.once('ready', () => {
|
||||
this.add(27, () => {
|
||||
if (player.fullscreenWeb) {
|
||||
player.fullscreenWeb = false;
|
||||
if (art.fullscreenWeb) {
|
||||
art.fullscreenWeb = false;
|
||||
}
|
||||
});
|
||||
|
||||
this.add(32, () => {
|
||||
player.toggle();
|
||||
art.toggle();
|
||||
});
|
||||
|
||||
this.add(37, () => {
|
||||
player.backward = 5;
|
||||
art.backward = 5;
|
||||
});
|
||||
|
||||
this.add(38, () => {
|
||||
player.volume += 0.1;
|
||||
art.volume += 0.1;
|
||||
});
|
||||
|
||||
this.add(39, () => {
|
||||
player.forward = 5;
|
||||
art.forward = 5;
|
||||
});
|
||||
|
||||
this.add(40, () => {
|
||||
player.volume -= 0.1;
|
||||
art.volume -= 0.1;
|
||||
});
|
||||
|
||||
proxy(window, 'keydown', (event) => {
|
||||
|
||||
Reference in new issue
Block a user