add ConnClient.Tracks(); remove Tracks from DialRead returned values

This commit is contained in:
aler9
2020-10-10 15:29:03 +02:00
parent d33ee9a73e
commit 6e4eaaea18
5 changed files with 25 additions and 14 deletions

View File

@@ -13,7 +13,7 @@ import (
func main() {
// connect to the server and start reading all tracks
conn, _, err := gortsplib.DialRead("rtsp://localhost:8554/mystream", gortsplib.StreamProtocolTCP)
conn, err := gortsplib.DialRead("rtsp://localhost:8554/mystream", gortsplib.StreamProtocolTCP)
if err != nil {
panic(err)
}