MCPcopy Create free account
hub / github.com/livekit/livekit / SetStreamRestartDetection

Method SetStreamRestartDetection

pkg/sfu/buffer/buffer_base.go:442–447  ·  view source on GitHub ↗
(enable bool)

Source from the content-addressed store, hash-verified

440}
441
442func (b *BufferBase) SetStreamRestartDetection(enable bool) {
443 b.Lock()
444 defer b.Unlock()
445
446 b.enableStreamRestartDetection = enable
447}
448
449func (b *BufferBase) setupRTPStats(clockRate uint32) {
450 b.rtpStats = rtpstats.NewRTPStatsReceiver(rtpstats.RTPStatsParams{})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected