An attempt to use consistent layer mapping (#986)

* WIP commit

* Consistent layers.

* slight re-arrangement of code

* log mime

* fix tests

* map -> array
This commit is contained in:
Raja Subramanian
2022-09-07 09:57:31 +05:30
committed by GitHub
parent aaeba74402
commit d76f7811e9
14 changed files with 832 additions and 151 deletions
-6
View File
@@ -11,12 +11,6 @@ import (
"github.com/livekit/livekit-server/pkg/sfu/buffer"
)
const (
QuarterResolution = "q"
HalfResolution = "h"
FullResolution = "f"
)
// Do a fuzzy find for a codec in the list of codecs
// Used for lookup up a codec in an existing list to find a match
func codecParametersFuzzySearch(needle webrtc.RTPCodecParameters, haystack []webrtc.RTPCodecParameters) (webrtc.RTPCodecParameters, error) {