mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 07:37:07 +08:00
remove ID and BaseURL from Track
This commit is contained in:
@@ -22,9 +22,9 @@ func main() {
|
||||
|
||||
// check whether there's a H264 track
|
||||
h264Track := func() int {
|
||||
for _, track := range conn.Tracks() {
|
||||
for i, track := range conn.Tracks() {
|
||||
if track.IsH264() {
|
||||
return track.ID
|
||||
return i
|
||||
}
|
||||
}
|
||||
return -1
|
||||
|
Reference in New Issue
Block a user