Tweak screen share stream tracker. (#683)
* Tweak screen share stream tracker. Screen share uses extremely low frame rate when content is static. This leads to stream tracker changes and layer switches. Use a longer measurement interval for screen share tracks. Setting it to 4 seconds. The screen share frame rate is approx. 1 fps and with two temporal layers, it should get a frame every 2 seconds or so in every layer. But, that does not work. Even three second measurement window was reporting 0 rate. So, it is getting clumped. 4 seconds works fine. Also modifying the bit rate availability change to trigger on a temporal layer becoming available or going away. With these changes, on a local test, not seeing any unnecessary PLIs from client and hence no unnecessary key frames from publisher. * Fix test
This commit is contained in:
@@ -14,10 +14,11 @@ import (
|
||||
|
||||
func newStreamTracker(samplesRequired uint32, cyclesRequired uint32, cycleDuration time.Duration) *StreamTracker {
|
||||
return NewStreamTracker(StreamTrackerParams{
|
||||
SamplesRequired: samplesRequired,
|
||||
CyclesRequired: cyclesRequired,
|
||||
CycleDuration: cycleDuration,
|
||||
Logger: logger.GetDefaultLogger(),
|
||||
SamplesRequired: samplesRequired,
|
||||
CyclesRequired: cyclesRequired,
|
||||
CycleDuration: cycleDuration,
|
||||
BitrateReportInterval: 1 * time.Second,
|
||||
Logger: logger.GetDefaultLogger(),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user