package main
import (
"fmt"
"os"
"os/exec"
)
func main() {
// Step 1: Define the URL for streaming movie
movieURL := "https://example.com/jogo_entre_ladroes"
// Step 2: Check if the system has a media player installed
_, err := exec.LookPath("mpv")
if err != nil {
fmt.Println("Error: Media player 'mpv' not found. Please install it.")
os.Exit(1)
}
// Step 3: Launch the streaming movie using the media player
cmd := exec.Command("mpv", movieURL)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err = cmd.Run()
if err != nil {
fmt.Println("Error:", err)
os.Exit(1)
}
}