package mpd // Rewriter transforms an upstream live MPD into something N_m3u8DL-RE can // refresh safely. Apps that need DAI/colon stripping or synthetic timelines // implement this; others return Passthrough. type Rewriter interface { Name() string Rewrite(upstreamXML []byte, kidHint string) (out []byte, err error) } // Passthrough leaves the MPD unchanged. type Passthrough struct{} func (Passthrough) Name() string { return "none" } func (Passthrough) Rewrite(in []byte, _ string) ([]byte, error) { return in, nil }