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:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user