remove ID and BaseURL from Track

This commit is contained in:
aler9
2021-06-23 23:07:55 +02:00
parent d073a185c2
commit dde57ee568
14 changed files with 236 additions and 106 deletions

View File

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