MCPcopy
hub / github.com/livekit/livekit / StreamTracker

Struct StreamTracker

pkg/sfu/streamtracker/streamtracker.go:57–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57type StreamTracker struct {
58 params StreamTrackerParams
59
60 onStatusChanged func(status StreamStatus)
61 onBitrateAvailable func()
62
63 lock sync.RWMutex
64
65 paused bool
66 generation atomic.Uint32
67
68 status StreamStatus
69 lastNotifiedStatus StreamStatus
70
71 lastBitrateReport time.Time
72 bytesForBitrate [buffer.DefaultMaxLayerTemporal + 1]int64
73 bitrate [buffer.DefaultMaxLayerTemporal + 1]int64
74
75 isStopped bool
76}
77
78func NewStreamTracker(params StreamTrackerParams) *StreamTracker {
79 return &StreamTracker{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected