initial commit
This commit is contained in:
commit
859c6d328e
8 changed files with 572 additions and 0 deletions
10
player/player.go
Normal file
10
player/player.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue