Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = cli.Command{ Name: "control", Aliases: []string{"c"}, Usage: "Control mpv via socket", Subcommands: []cli.Command{ PlayCommand, PauseCommand, StopCommand, volumeCommand, from0Command, seekCommand, statusCommand, }, }
View Source
var PauseCommand = cli.Command{ Name: "pause", Category: "CONTROL", Usage: "Pause the current file", Action: func(ctx *cli.Context) error { c, err := mp.Connect(ctx) if err != nil { return err } return c.SetPause(!c.Paused()) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.