Skip to content

mpeter50/mpv-touch-gestures

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mpv-touch-gestures

Touch gestures for mpv

Configuration and extension of pointer-event to improve the usability of mpv on touch devices.

Also works with mouse input, but the primary focus is touch.

Features

  • Single click/tap pauses/unpauses the video.
  • Long click/tap opens the menu.
  • Double click/tap on the left or right third to seek 10 seconds.
  • Double click/tap on the middle third cycles fullscreen.
  • Drag/swipe vertical on the left half to change speed.
  • Drag/swipe vertical on the right half to change volume.
  • Drag/swipe horizontal to seek or to go to the previous/next playlist item.
  • uosc integration

Installation

  1. Install pointer-event
  2. Save the touch-gestures.lua into your scripts directory
  3. Save the pointer-event.conf into your script-opts directory (next to the scripts directory, create if it doesn't exist)
  4. (optional) Create a touch-gestures.conf in your script-opts directory to choose between seeking and changing playlist item when swiping horizontally.
horizontal_drag=seek
or
horizontal_drag=playlist

The preconfigured margin_* values in pointer-event.conf work well with the default configuration of uosc.

About

Touch gestures for mpv

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%