SubscribedQualityUpdate message (#270)

* WIP commit

* SubscribedQualityUpdate message to send list of currently subscribed
qualities for a simulcast video publisher

* Correct subscriberID

* goimports

* Do quality update on add/remove of subscribed track

* do not update quality when admin mute is active

* update quality on admin unmute

* Update protocol version

* Simplify max subscribed quality loop per David's suggestion
This commit is contained in:
Raja Subramanian
2021-12-19 12:41:40 +05:30
committed by GitHub
parent 0b71a46239
commit 1dcc62b569
15 changed files with 542 additions and 19 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ type Receiver interface {
NumAvailableSpatialLayers() int
GetBitrateTemporalCumulative() Bitrates
ReadRTP(buf []byte, layer uint8, sn uint16) (int, error)
DeleteDownTrack(ID string)
DeleteDownTrack(peerID string)
OnCloseHandler(fn func())
SendPLI(layer int32)
SetRTCPCh(ch chan []rtcp.Packet)
@@ -319,7 +319,7 @@ func (w *WebRTCReceiver) removeAvailableLayer(layer uint16) {
w.upTrackMu.Unlock()
return
}
newLayers := make([]uint16, 0, 3)
newLayers := make([]uint16, 0, DefaultMaxLayerSpatial+1)
for _, l := range layers {
if l != layer {
newLayers = append(newLayers, l)