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

Method OnCodecChange

pkg/sfu/buffer/buffer_base.go:1431–1435  ·  view source on GitHub ↗
(fn func(webrtc.RTPCodecParameters))

Source from the content-addressed store, hash-verified

1429}
1430
1431func (b *BufferBase) OnCodecChange(fn func(webrtc.RTPCodecParameters)) {
1432 b.Lock()
1433 b.onCodecChange = fn
1434 b.Unlock()
1435}
1436
1437func (b *BufferBase) OnStreamRestart(fn func(string)) {
1438 b.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected