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

@@ -34,7 +34,7 @@ func main() {
fmt.Println("stream connected")
// create an AAC track
track, err := gortsplib.NewTrackAAC(96, &gortsplib.TrackConfigAAC{Type: 2, SampleRate: 48000, ChannelCount: 2})
track, err := gortsplib.NewTrackAAC(96, 2, 48000, 2, nil)
if err != nil {
panic(err)
}