change track initialization method

This commit is contained in:
aler9
2022-06-23 13:13:36 +02:00
parent 3223af460e
commit 9f4fea8a01
40 changed files with 765 additions and 706 deletions

View File

@@ -36,9 +36,8 @@ func main() {
log.Println("stream connected")
// create an H264 track
track, err := gortsplib.NewTrackH264(96, nil, nil, nil)
if err != nil {
panic(err)
track := &gortsplib.TrackH264{
PayloadType: 96,
}
// Client allows to set additional client options