-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommands.js
34 lines (32 loc) · 1.16 KB
/
commands.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
// Nullary
togglePause: () => 'cycle pause',
stop: () => 'stop',
status: () => 'show-progress',
seekBackward: () => 'seek -5',
seekForward: () => 'seek +5',
bigSeekBackward: () => 'seek -30',
bigSeekForward: () => 'seek +30',
increaseSpeed: () => 'multiply speed 1.1',
decreaseSpeed: () => 'multiply speed 0.9',
resetSpeed: () => 'set speed 1',
decreaseVolume: () => 'add volume -5',
increaseVolume: () => 'add volume 5',
mute: () => 'cycle mute',
toggleFullscreen: () => 'cycle fullscreen',
toggleSubtitle: () => 'cycle sub',
loop: () => "cycle loop",
switch_angle: () => "cycle angle",
switch_audio: () => "cycle audio",
vo_ontop: () => "cycle ontop",
vo_border: () => "cycle border",
frame_drop: () => "cycle framedrop",
switch_vsync: () => "cycle vsync",
sub_visibility: () => "cycle sub-visibility",
forced_subs_only: () => "cycle sub-forced-only",
ass_use_margins: () => "cycle ass-use-margins",
// N-ary
addSubtitle: file => `sub-add "${file}"`,
seek: (diff, mode) => `seek ${diff} ${mode}`,
subDelay: diff => `add sub-delay ${diff}`
};