Split out stream tracker manager (#394)

* Random clean up

* Split out StreamTrackerManager for re-use

* Reset the correct tracker

* use generation counter to exit coroutine

* start only for video and when enabled

* Add RemoveAllTrackers method
This commit is contained in:
Raja Subramanian
2022-02-01 13:24:42 +05:30
committed by GitHub
parent 247807b2cc
commit e22f47b416
6 changed files with 280 additions and 229 deletions
+3 -3
View File
@@ -83,7 +83,7 @@ type VideoAllocation struct {
change VideoStreamingChange
bandwidthRequested int64
bandwidthDelta int64
availableLayers []uint16
availableLayers []int32
bitrates Bitrates
targetLayers VideoLayers
distanceToDesired int32
@@ -182,7 +182,7 @@ type Forwarder struct {
lastAllocation VideoAllocation
availableLayers []uint16
availableLayers []int32
rtpMunger *RTPMunger
vp8Munger *VP8Munger
@@ -301,7 +301,7 @@ func (f *Forwarder) GetForwardingStatus() ForwardingStatus {
return ForwardingStatusOptimal
}
func (f *Forwarder) UpTrackLayersChange(availableLayers []uint16) {
func (f *Forwarder) UpTrackLayersChange(availableLayers []int32) {
f.lock.Lock()
defer f.lock.Unlock()