mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
change track initialization method
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user