mirror of
https://github.com/livekit/livekit.git
synced 2026-04-25 06:52:07 +00:00
* WIP commit
* Connection quality changes
- Fix Firefox showing poor quality
o The issue was that we were using max available layer and
calculating quality. The rationale being that even if
server sends dynacast messages, client may not implement
dynacast and still stream all layers. But, with Firefox
(maybe a Firefox bug), it sends some small amount of
data on layer 2 even when that layer is disabled.
Guessing it is probing (or actually we might be using
some small value for high layers as Firefox cannot turn off
layers). That higher layer gets used in quality calculation.
As the bit rate on that layer is extremely low, it yields low
score.
Fixed by considering the max expected layer. That is of most
interest. Yes, clients may ignore dynacast and stream all layers,
but, max expected is the one of interest. So, look for
quality in the max expected layer and not max available layer.
- Lots of clean up around connection quality stuff
o Use a dynamic scaling thing to ensure that we do not get bitten
by absolute values. Calculate best possible scenario score and
map that to maximum MOS score. This will ensure that different
codecs, different settings do not mess up the scoring. For example,
a client might use 1 Mbps for 720p, but a different client could
use 2 Mbps for 720p. As an SFU/infrastructure middlebox, we do
not have control over quality at those rates. We can only ensure
that streaming happens smoothly at those rates. So, in that
example, for client 1, 1 Mbps will map to MOS 5.0 and for client 2,
2 Mbps will map to MOS 5.0. Any impairments after that will
reflect in the score.
o Penalise for missing target layer by one level for one layer missed.
o Move tests to connection quality directory. The participant test
was not super useful.
* Add missed file
* Remove debug code
* use more constants and initialise normalisation factor
* rtcscore pointer
99 lines
3.9 KiB
Modula-2
99 lines
3.9 KiB
Modula-2
module github.com/livekit/livekit-server
|
|
|
|
go 1.17
|
|
|
|
require (
|
|
github.com/bep/debounce v1.2.1
|
|
github.com/d5/tengo/v2 v2.12.1
|
|
github.com/dustin/go-humanize v1.0.0
|
|
github.com/elliotchance/orderedmap v1.4.0
|
|
github.com/florianl/go-tc v0.4.1
|
|
github.com/gammazero/deque v0.1.0
|
|
github.com/gammazero/workerpool v1.1.2
|
|
github.com/go-logr/logr v1.2.3
|
|
github.com/go-redis/redis/v8 v8.11.5
|
|
github.com/google/wire v0.5.0
|
|
github.com/gorilla/websocket v1.5.0
|
|
github.com/hashicorp/go-version v1.6.0
|
|
github.com/hashicorp/golang-lru v0.5.4
|
|
github.com/livekit/protocol v1.0.1-0.20220814074051-ac91aad4ad8c
|
|
github.com/livekit/rtcscore-go v0.0.0-20220815072451-20ee10ae1995
|
|
github.com/mackerelio/go-osstat v0.2.2
|
|
github.com/magefile/mage v1.13.0
|
|
github.com/maxbrunsfeld/counterfeiter/v6 v6.5.0
|
|
github.com/mitchellh/go-homedir v1.1.0
|
|
github.com/olekukonko/tablewriter v0.0.5
|
|
github.com/pion/ice/v2 v2.2.7
|
|
github.com/pion/interceptor v0.1.12
|
|
github.com/pion/logging v0.2.2
|
|
github.com/pion/rtcp v1.2.10
|
|
github.com/pion/rtp v1.7.13
|
|
github.com/pion/sdp/v3 v3.0.6
|
|
github.com/pion/stun v0.3.5
|
|
github.com/pion/transport v0.13.1
|
|
github.com/pion/turn/v2 v2.0.8
|
|
github.com/pion/webrtc/v3 v3.1.43
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/prometheus/client_golang v1.13.0
|
|
github.com/rs/cors v1.8.2
|
|
github.com/sebest/xff v0.0.0-20210106013422-671bd2870b3a
|
|
github.com/stretchr/testify v1.8.0
|
|
github.com/thoas/go-funk v0.9.2
|
|
github.com/twitchtv/twirp v8.1.2+incompatible
|
|
github.com/ua-parser/uap-go v0.0.0-20211112212520-00c877edfe0f
|
|
github.com/urfave/cli/v2 v2.11.1
|
|
github.com/urfave/negroni v1.0.0
|
|
go.uber.org/atomic v1.10.0
|
|
go.uber.org/zap v1.22.0
|
|
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
|
|
google.golang.org/protobuf v1.28.1
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/cespare/xxhash/v2 v2.1.2 // indirect
|
|
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
|
github.com/eapache/channels v1.1.0 // indirect
|
|
github.com/eapache/queue v1.1.0 // indirect
|
|
github.com/go-logr/zapr v1.2.3 // indirect
|
|
github.com/golang/protobuf v1.5.2 // indirect
|
|
github.com/google/go-cmp v0.5.8 // indirect
|
|
github.com/google/subcommands v1.2.0 // indirect
|
|
github.com/google/uuid v1.3.0 // indirect
|
|
github.com/josharian/native v1.0.0 // indirect
|
|
github.com/jxskiss/base62 v1.1.0 // indirect
|
|
github.com/lithammer/shortuuid/v3 v3.0.7 // indirect
|
|
github.com/mattn/go-runewidth v0.0.9 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
|
|
github.com/mdlayher/netlink v1.6.0 // indirect
|
|
github.com/mdlayher/socket v0.1.1 // indirect
|
|
github.com/pion/datachannel v1.5.2 // indirect
|
|
github.com/pion/dtls/v2 v2.1.5 // indirect
|
|
github.com/pion/mdns v0.0.5 // indirect
|
|
github.com/pion/randutil v0.1.0 // indirect
|
|
github.com/pion/sctp v1.8.2 // indirect
|
|
github.com/pion/srtp/v2 v2.0.10 // indirect
|
|
github.com/pion/udp v0.1.1 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/prometheus/client_model v0.2.0 // indirect
|
|
github.com/prometheus/common v0.37.0 // indirect
|
|
github.com/prometheus/procfs v0.8.0 // indirect
|
|
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
|
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
|
|
go.uber.org/multierr v1.6.0 // indirect
|
|
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirect
|
|
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect
|
|
golang.org/x/net v0.0.0-20220708220712-1185a9018129 // indirect
|
|
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
|
|
golang.org/x/text v0.3.7 // indirect
|
|
golang.org/x/tools v0.1.10 // indirect
|
|
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect
|
|
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987 // indirect
|
|
google.golang.org/grpc v1.48.0 // indirect
|
|
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
|
|
gopkg.in/yaml.v2 v2.4.0 // indirect
|
|
)
|