Touchscreen and mouse gestures for mpv.
Supports seeking via horizontal swiping with hysteresis and volume and speed control via vertical swiping (left half of the screen for speed, right for volume). You can also click-n-drag for fine control. Swiping with the middle mouse button allows for finer speed controls; horizontal swipes with the middle mouse button change the relative speed, vertical swipes resets it back to 1.00.
You need to set no-window-dragging
in you mpv.conf
for this script to work.
For configuration options see the source.