new track system

This commit is contained in:
aler9
2022-01-28 17:42:20 +01:00
committed by Alessandro Ros
parent cd0db96a5d
commit 6d5bf0c1bb
31 changed files with 1523 additions and 1432 deletions

View File

@@ -37,7 +37,7 @@ func main() {
fmt.Println("stream connected")
// create an H264 track
track, err := gortsplib.NewTrackH264(96, &gortsplib.TrackConfigH264{sps, pps})
track, err := gortsplib.NewTrackH264(96, sps, pps)
if err != nil {
panic(err)
}