Initial commit: Null DRM Official

Capture, decrypt, and restream toolkit with compiled-in app modules
(RTE, TG4, BBC), on-device MITM proxy, streamd control plane, and www.
BBC module.yaml is published (clear streams); other module values stay local.
This commit is contained in:
404errordeveloper 2026-10-06 00:25:35 +02:00
commit 2fa8f2435f
121 changed files with 17802 additions and 0 deletions

15
apps/pkg/mpd/mpd.go Normal file
View file

@ -0,0 +1,15 @@
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 }