improve examples in order not to skip first RTP packet

This commit is contained in:
aler9
2022-03-20 11:41:30 +01:00
parent 47f88c63ba
commit 62d52a5e29
4 changed files with 29 additions and 34 deletions

View File

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