add flash-top-bar command
useful for seeing the video title when switching files
This commit is contained in:
@@ -246,6 +246,7 @@ Expands the bottom timeline until pressed again, or next mouse move. Useful to c
|
||||
Toggles the always visible portion of the timeline. You can look at it as switching `timeline_size_min` option between it's configured value and 0.
|
||||
|
||||
#### `flash-timeline`
|
||||
#### `flash-top-bar`
|
||||
#### `flash-volume`
|
||||
#### `flash-speed`
|
||||
#### `flash-pause-indicator`
|
||||
@@ -265,6 +266,8 @@ down add volume -10; script-binding uosc/flash-volume
|
||||
[ add speed -0.25; script-binding uosc/flash-speed
|
||||
] add speed 0.25; script-binding uosc/flash-speed
|
||||
\ set speed 1; script-binding uosc/flash-speed
|
||||
> script-binding uosc/next; script-binding flash-top-bar; script-binding flash-timeline
|
||||
< script-binding uosc/prev; script-binding flash-top-bar; script-binding flash-timeline
|
||||
```
|
||||
|
||||
Case for `(flash/decide)-pause-indicator`: mpv handles frame stepping forward by briefly resuming the video, which causes pause indicator to flash, and none likes that when they are trying to compare frames. The solution is to enable manual pause indicator (`pause_indicator=manual`) and use `flash-pause-indicator` (for a brief flash) or `decide-pause-indicator` (for a static indicator) as a secondary command to all bindings you wish would display it (see space binding example above).
|
||||
|
4
uosc.lua
4
uosc.lua
@@ -179,6 +179,7 @@ Available keybindings (place into `input.conf`):
|
||||
Key script-binding uosc/peek-timeline
|
||||
Key script-binding uosc/toggle-progress
|
||||
Key script-binding uosc/flash-timeline
|
||||
Key script-binding uosc/flash-top-bar
|
||||
Key script-binding uosc/flash-volume
|
||||
Key script-binding uosc/flash-speed
|
||||
Key script-binding uosc/flash-pause-indicator
|
||||
@@ -3245,6 +3246,9 @@ end)
|
||||
mp.add_key_binding(nil, 'flash-timeline', function()
|
||||
elements.timeline:flash()
|
||||
end)
|
||||
mp.add_key_binding(nil, 'flash-top-bar', function()
|
||||
elements.top_bar:flash()
|
||||
end)
|
||||
mp.add_key_binding(nil, 'flash-volume', function()
|
||||
if elements.volume then elements.volume:flash() end
|
||||
end)
|
||||
|
Reference in New Issue
Block a user