MCPcopy Index your code
hub / github.com/Monibuca/engine / SetIDR

Method SetIDR

stream.go:169–177  ·  view source on GitHub ↗
(video common.Track)

Source from the content-addressed store, hash-verified

167}
168
169func (tracks *Tracks) SetIDR(video common.Track) {
170 if video == tracks.MainVideo {
171 tracks.Range(func(_ string, t common.Track) {
172 if v, ok := t.(*track.Audio); ok {
173 v.Narrow()
174 }
175 })
176 }
177}
178
179func (tracks *Tracks) MarshalJSON() ([]byte, error) {
180 var trackList []common.Track

Callers 1

AddMethod · 0.95

Calls 2

RangeMethod · 0.95
NarrowMethod · 0.65

Tested by

no test coverage detected