ytgo/player/player.go
2024-12-09 21:59:16 +01:00

10 lines
182 B
Go

package player
import (
"os/exec"
)
// PlayVideo returns an exec.Cmd for playing the video URL using mpv
func PlayVideo(url string) *exec.Cmd {
return exec.Command("mpv", url)
}