You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
311 B

2 years ago
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)
}
}