mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
client: simplify API, add StartReadingWait
This commit is contained in:
@@ -163,13 +163,5 @@ func main() {
|
||||
}
|
||||
|
||||
// connect to the server and start reading all tracks
|
||||
err = c.DialRead(inputStream)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer c.Close()
|
||||
|
||||
// read packets
|
||||
err = c.ReadFrames()
|
||||
panic(err)
|
||||
panic(c.StartReadingAndWait(inputStream))
|
||||
}
|
||||
|
Reference in New Issue
Block a user