insert TrackId and StreamType directly into InterleavedFrame

This commit is contained in:
aler9
2020-07-13 08:35:54 +02:00
parent df2da058e0
commit d675bad299
4 changed files with 43 additions and 24 deletions

View File

@@ -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)
}
}