Closed jerry2013 closed 1 year ago
this took me lots of time to track down.
under iosrtc, for local media tracks, the normal flow goes:
new MediaStreamTrack
pc.getOrCreateTrack
the patch here uses a global map to maintain all "active" tracks, so that the async callback can find the existing tracks.
still, this is a quick and dirty workaround to addresses my own usage.
this took me lots of time to track down.
under iosrtc, for local media tracks, the normal flow goes:
new MediaStreamTrack
pc.getOrCreateTrack
then makesnew MediaStreamTrack
with the same idthe patch here uses a global map to maintain all "active" tracks, so that the async callback can find the existing tracks.
still, this is a quick and dirty workaround to addresses my own usage.