Cleaning up availableLayers and exemptedLayers (#1407)

* WIP commit

* Send stream state paused only when it is paused due to bandwidth limitation.

When stream is resumed after a stream is paused, an active update is
sent. Note that this means if there are intervening events like
mute/unmute between pause and resume, resume will be sent.

* WIP commit

* fix compile

* WIP commit

* fixing tests

* clean up exempted layers

* clean up unused stuff

* correct comment

* Don't need ops queue as order is not important now

* static check

* kick off allocation when callbacks are set up, calling from receiver means callbacks may not be set up
This commit is contained in:
Raja Subramanian
2023-02-17 13:53:11 +05:30
committed by GitHub
parent 9f94fc8347
commit 85a23bfffc
7 changed files with 371 additions and 583 deletions
-3
View File
@@ -165,7 +165,6 @@ type StreamTrackerFrameConfig struct {
type StreamTrackerConfig struct {
StreamTrackerType StreamTrackerType `yaml:"stream_tracker_type,omitempty"`
BitrateReportInterval map[int32]time.Duration `yaml:"bitrate_report_interval,omitempty"`
ExemptedLayers []int32 `yaml:"exempted_layers,omitempty"`
PacketTracker map[int32]StreamTrackerPacketConfig `yaml:"packet_tracker,omitempty"`
FrameTracker map[int32]StreamTrackerFrameConfig `yaml:"frame_tracker,omitempty"`
}
@@ -304,7 +303,6 @@ func NewConfig(confString string, strictMode bool, c *cli.Context, baseFlags []c
1: 1 * time.Second,
2: 1 * time.Second,
},
ExemptedLayers: []int32{},
PacketTracker: map[int32]StreamTrackerPacketConfig{
0: StreamTrackerPacketConfig{
SamplesRequired: 1,
@@ -341,7 +339,6 @@ func NewConfig(confString string, strictMode bool, c *cli.Context, baseFlags []c
1: 4 * time.Second,
2: 4 * time.Second,
},
ExemptedLayers: []int32{0},
PacketTracker: map[int32]StreamTrackerPacketConfig{
0: StreamTrackerPacketConfig{
SamplesRequired: 1,