MCPcopy
hub / github.com/livekit/livekit / StreamAllocator

Struct StreamAllocator

pkg/sfu/streamallocator/streamallocator.go:224–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224type StreamAllocator struct {
225 params StreamAllocatorParams
226
227 onStreamStateChange func(update *StreamStateUpdate) error
228
229 sendSideBWEInterceptor cc.BandwidthEstimator
230
231 enabled bool
232 allowPause bool
233
234 committedChannelCapacity int64
235 overriddenChannelCapacity int64
236
237 prober *ccutils.Prober
238
239 videoTracksMu sync.RWMutex
240 videoTracks map[livekit.TrackID]*Track
241 videoTracksShadow []*Track
242 isAllocateAllPending bool
243 rembTrackingSSRC uint32
244
245 state streamAllocatorState
246
247 activeProbeClusterId ccutils.ProbeClusterId
248 activeProbeGoalReached bool
249 activeProbeCongesting bool
250
251 eventsQueue *utils.TypedOpsQueue[Event]
252
253 lastRTTTime time.Time
254
255 pingGeneration atomic.Uint32
256
257 isStopped atomic.Bool
258}
259
260func NewStreamAllocator(params StreamAllocatorParams, enabled bool, allowPause bool) *StreamAllocator {
261 s := &StreamAllocator{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected