Skip to content

A remote for Unified Remote to control mpv over IPC

License

Notifications You must be signed in to change notification settings

Drauthius/unified-remote-mpv-ipc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpv remote over IPC

A remote for Unified Remote to control mpv over IPC.

Benefits of IPC:

  • Keyboard-layout agnostic

    Keystrokes are interpreted and converted by the operating system, so only standard qwerty might work as expected. This remote does not use keystrokes, but crafted messages to communicate and control mpv.

  • Key-binding agnostic

    Configuring mpv to use non-default key bindings might make other remotes unusable or behave strangely. This remote doesn't use key bindings.

  • Window-focus agnostic

    Keystrokes require mpv to be the focused window by the operating system. In case it loses focus, the keystrokes will be sent to the wrong program, and other remotes will stop working. This remote can communicate with mpv even if mpv is hidden or minimized, by using the file system.

Drawbacks of IPC:

  • IPC must be configured

    The IPC is not enabled by default in mpv. See usage below.

  • No support for Microsoft Windows

    Although mpv supports named pipes under Windows, this remote has currently no support for using them. Add an issue or pull request for it.

  • Controlling multiple instances of mpv is a hassle

    It is possible to start multiple mpv instances, but changing which instance the remote communicates with is a bit of a hassle, albeit doable.

Usage

  1. Install Unified Remote.

  2. Clone this repository to the directory containing the remotes.

  3. Start or restart the Unified Remote server.

  4. Configure mpv to enable the IPC server.

    This can be done by either specifying --input-ipc-server=/tmp/mpv-socket to the command line when starting mpv, or by adding it to mpv's configuration file to have it on by default.

  5. Open the remote on your other device. It should try to connect automatically when started, and when trying to send a command.

About

A remote for Unified Remote to control mpv over IPC

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Lua 100.0%