MCPcopy Create free account
hub / github.com/Monibuca/engine / AddIDR

Method AddIDR

track/media.go:218–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216}
217
218func (av *Media) AddIDR() {
219 if av.BufferTime > 0 {
220 av.IDRingList.AddIDR(av.Ring)
221 if av.HistoryRing == nil {
222 av.HistoryRing = av.IDRing
223 }
224 } else {
225 av.IDRing = av.Ring
226 }
227}
228
229func (av *Media) Flush() {
230 curValue, preValue, nextValue := av.Value, av.LastValue, av.Next()

Callers 2

NarrowMethod · 0.45
computeGOPMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected