client: simplify API, add StartReadingWait

This commit is contained in:
aler9
2021-11-12 15:48:50 +01:00
committed by Alessandro Ros
parent d04381d787
commit e13b4289ec
16 changed files with 82 additions and 199 deletions

View File

@@ -42,7 +42,7 @@ func main() {
c := gortsplib.Client{}
// connect to the server and start publishing the track
err = c.DialPublish("rtsp://localhost:8554/mystream",
err = c.StartPublishing("rtsp://localhost:8554/mystream",
gortsplib.Tracks{track})
if err != nil {
panic(err)