A Go language version of umpv (https://github.com/mpv-player/mpv/blob/master/TOOLS/umpv)
Tested only on Windows, rsrc.syso
is the icon resource for the Windows program.
umpv video.mkv
Specify the IPC server socket path. If not provided, a default path will be used based on the operating system.
Specify the loadfile flag. Possible values are:
replace
: Replace the current playlist.append
: Append to the current playlist.append-play
: (default) Append the file, and if nothing is currently playing, start playback.insert-next
: Insert the file into the playlist, directly after the current entry.insert-next-play
: Insert the file next, and if nothing is currently playing, start playback. Read mpv manual for more details.
Specify the config file path. If not provided, the default path umpv.conf
in the executable directory will be used.
umpv --ipc-server=\\.\\pipe\\mpvpipe --loadfile-flag=replace video.mkv