mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
insert TrackId and StreamType directly into InterleavedFrame
This commit is contained in:
@@ -58,7 +58,7 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
trackId, streamType := gortsplib.ConvChannelToTrackIdAndStreamType(frame.Channel)
|
||||
fmt.Printf("packet from track %d, type %v: %v\n", trackId, streamType, frame.Content)
|
||||
fmt.Printf("packet from track %d, type %v: %v\n",
|
||||
frame.TrackId, frame.StreamType, frame.Content)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user