mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
change track initialization method
This commit is contained in:
@@ -35,9 +35,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,
|
||||
}
|
||||
|
||||
// connect to the server and start publishing the track
|
||||
|
Reference in New Issue
Block a user