package ffmpegServer import ( "fmt" "testing" ) func TestProbeStreamsWithTimeout(t *testing.T) { url := "rtsp://admin:hk123456@192.168.1.65:554/Streaming/Channels/101" timeout := 5000 str, err := ProbeStreamsWithTimeout(url, timeout) if err != nil { fmt.Println(err) } else { fmt.Println(str) } }