clean up logs and imports (#400)

This commit is contained in:
David Colburn
2022-02-03 14:20:19 -07:00
committed by GitHub
parent 7297a57f3d
commit 7bbd238188
24 changed files with 44 additions and 40 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ func (t *MediaTrackSubscriptions) AddSubscriber(sub types.LocalParticipant, code
downTrack.SetTransceiver(transceiver)
// when outtrack is bound, start loop to send reports
// when out track is bound, start loop to send reports
downTrack.OnBind(func() {
go subTrack.Bound()
go t.sendDownTrackBindingReports(sub)
+3 -4
View File
@@ -8,11 +8,8 @@ import (
"sync/atomic"
"time"
"github.com/livekit/livekit-server/pkg/sfu/connectionquality"
"github.com/livekit/livekit-server/pkg/sfu/twcc"
"github.com/livekit/protocol/auth"
lru "github.com/hashicorp/golang-lru"
"github.com/livekit/protocol/auth"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
"github.com/livekit/protocol/utils"
@@ -25,6 +22,8 @@ import (
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/sfu"
"github.com/livekit/livekit-server/pkg/sfu/connectionquality"
"github.com/livekit/livekit-server/pkg/sfu/twcc"
"github.com/livekit/livekit-server/pkg/telemetry"
"github.com/livekit/livekit-server/pkg/telemetry/prometheus"
"github.com/livekit/livekit-server/version"
+3 -3
View File
@@ -93,9 +93,9 @@ func newPeerConnection(params TransportParams, onBandwidthEstimator func(estimat
// Disable SRTP replay protection (https://datatracker.ietf.org/doc/html/rfc3711#page-15).
// Needed due to lack of RTX stream support in Pion.
//
// When clients probe for bandwidth, there are sveral possible approaches
// When clients probe for bandwidth, there are several possible approaches
// 1. Use padding packet (Chrome uses this)
// 2. Use an older packet (Forefox uses this)
// 2. Use an older packet (Firefox uses this)
// Typically, these are sent over the RTX stream and hence SRTP replay protection will not
// trigger. As Pion does not support RTX, when firefox uses older packet for probing, they
// trigger the replay protection.
@@ -113,7 +113,7 @@ func newPeerConnection(params TransportParams, onBandwidthEstimator func(estimat
}
//
// This introduces a half-RTT extra latency in connection setup,
// i. e. if SFU is acting as DTLSRoleClient, it can send the client-hello as soon
// i.e. if SFU is acting as DTLSRoleClient, it can send the client-hello as soon
// as it is ready. With this change, signalling has to be sent back to the client
// and client has to do client-hello which adds half RTT.
//