simplify example

This commit is contained in:
aler9
2021-10-22 17:44:09 +02:00
parent e7ab15750c
commit 1865ba58eb

View File

@@ -25,13 +25,8 @@ const (
)
func main() {
p := gortsplib.ClientTransportUDP
c := gortsplib.Client{
Transport: &p,
}
// connect to the server and start reading all tracks
conn, err := c.DialRead(inputStream)
conn, err := gortsplib.DialRead(inputStream)
if err != nil {
panic(err)
}