mpvfs

9P file server for controlling mpv playback

git clone https://git.8pit.net/mpvfs.git

 1package playlistfs
 2
 3import (
 4	"github.com/nmeum/mpvfs/fileserver"
 5)
 6
 7type Config struct {
 8	Playctl  fileserver.Cons
 9	Playlist fileserver.Cons
10	Playvol  fileserver.Cons
11}
12
13func NewPlaylistFS(c Config) *fileserver.FileServer {
14	return fileserver.NewFileServer(fileserver.FileMap{
15		"playctl":  c.Playctl,
16		"playlist": c.Playlist,
17		"playvol":  c.Playvol,
18	})
19}