initial commit

This commit is contained in:
pika 2024-12-09 21:59:16 +01:00
commit 859c6d328e
8 changed files with 572 additions and 0 deletions

10
player/player.go Normal file
View file

@ -0,0 +1,10 @@
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)
}