Compare commits

...

2 Commits

Author SHA1 Message Date
88d41fd700 add aliases for media subcommands 2026-01-09 19:58:43 +00:00
eab9303af7 fix media cursor in README 2026-01-09 19:34:45 +00:00
2 changed files with 6 additions and 6 deletions

View File

@ -781,7 +781,7 @@ gobs-cli settings video --base-width=1920 --base-height=1080
### MediaCmd
- set-cursor: Get/set the cursor position of a media input.
- cursor: Get/set the cursor position of a media input.
- args: InputName
*optional*

View File

@ -8,11 +8,11 @@ import (
// MediaCmd represents a collection of commands to control media inputs.
type MediaCmd struct {
Cursor MediaCursorCmd `cmd:"" help:"Get/set the cursor position of a media input."`
Play MediaPlayCmd `cmd:"" help:"Plays a media input."`
Pause MediaPauseCmd `cmd:"" help:"Pauses a media input."`
Stop MediaStopCmd `cmd:"" help:"Stops a media input."`
Restart MediaRestartCmd `cmd:"" help:"Restarts a media input."`
Cursor MediaCursorCmd `cmd:"" help:"Get/set the cursor position of a media input." aliases:"c"`
Play MediaPlayCmd `cmd:"" help:"Plays a media input." aliases:"p"`
Pause MediaPauseCmd `cmd:"" help:"Pauses a media input." aliases:"pa"`
Stop MediaStopCmd `cmd:"" help:"Stops a media input." aliases:"s"`
Restart MediaRestartCmd `cmd:"" help:"Restarts a media input." aliases:"r"`
}
// MediaCursorCmd represents the command to get or set the cursor position of a media input.