MCPcopy
hub / github.com/livekit/livekit / IsRedEnabled

Function IsRedEnabled

pkg/rtc/utils.go:196–202  ·  view source on GitHub ↗
(ti *livekit.TrackInfo)

Source from the content-addressed store, hash-verified

194}
195
196func IsRedEnabled(ti *livekit.TrackInfo) bool {
197 if len(ti.Codecs) != 0 && ti.Codecs[0].MimeType != "" {
198 return mime.IsMimeTypeStringRED(ti.Codecs[0].MimeType)
199 }
200
201 return !ti.GetDisableRed()
202}

Callers 3

AddSubscriberMethod · 0.85
AddSubscriberMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected