Streamd v0.2.0: rename, modules panel, stable/beta channels
All checks were successful
release / build-and-upload (push) Successful in 7m5s

- Rename product/host binary to streamd (drm compat copy still shipped)
- Go module path streamd; STREAMD_* env aliases; agent UA streamd-agent
- Panel Modules store + agent pull sync (modstore / modsync)
- Rolling stable + beta download tags; README/docs channel curl blocks
- Release notes in docs/releases/v0.2.0.md attached by Forgejo Actions
This commit is contained in:
404errordeveloper 2026-10-10 15:58:26 +02:00
parent 066e018749
commit da8e1123ec
140 changed files with 2949 additions and 851 deletions

View file

@ -4,8 +4,8 @@ One Go package per streaming app. Every module is **compiled into the binary**
there is no plugin loading and no modules directory to point a binary at.
```text
apps/modules/ Go module: drmdecryption/modules
go.mod replace drmdecryption => ../pkg
apps/modules/ Go module: streamd/modules
go.mod replace streamd => ../pkg
all/all.go blank-imports every module — the link point
provider/ shared base: values loading, channel aliases, durations
<name>/*.go TRACKED: the app's logic
@ -37,7 +37,7 @@ Values arrive by **flag → environment → module.yaml → Go default**, and on
mechanical defaults (timeouts, DASH timescales, card geometry) live in code:
```bash
./bin/drm catalog --app tg4 --channel ioi --tg4.policy-key BCpkAD...
./bin/streamd catalog --app tg4 --channel ioi --tg4.policy-key BCpkAD...
export TG4_POLICY_KEY=BCpkAD... # same thing
```
@ -46,9 +46,9 @@ export TG4_POLICY_KEY=BCpkAD... # same thing
1. Create `apps/modules/myapp/` with `config.go` and `myapp.go`
2. Register from `init()`: `appreg.Register(Name, New)` and
`appreg.RegisterFlags(bindFlags)`
3. Add one line to `all/all.go`: `_ "drmdecryption/modules/myapp"`
3. Add one line to `all/all.go`: `_ "streamd/modules/myapp"`
4. Create `apps/modules/myapp/module.yaml` with your values
5. `go -C apps/cli build -o ../../bin/drm .` then `./bin/drm modules`
5. `go -C apps/cli build -o ../../bin/streamd .` then `./bin/streamd modules`
**Authoring guide: [docs/modules.md](../../docs/modules.md)** — the full contract,
`uiflow` reference, optional capability interfaces, and a checklist.
@ -59,9 +59,9 @@ export TG4_POLICY_KEY=BCpkAD... # same thing
## Run
```bash
./bin/drm modules # what is compiled in
./bin/drm capture --app rte --channel rteone --auto-play
./bin/drm capture --app bbc --channel bbcone # transparent MITM; play on phone; MPD only
./bin/drm catalog --app tg4 --channel ioi --keys --wvd data/device.wvd
./bin/drm agent run --config apps/agent/agent.yaml
./bin/streamd modules # what is compiled in
./bin/streamd capture --app rte --channel rteone --auto-play
./bin/streamd capture --app bbc --channel bbcone # transparent MITM; play on phone; MPD only
./bin/streamd catalog --app tg4 --channel ioi --keys --wvd data/device.wvd
./bin/streamd agent run --config apps/agent/agent.yaml
```

View file

@ -4,7 +4,7 @@
package all
import (
_ "drmdecryption/modules/bbc"
_ "drmdecryption/modules/rte"
_ "drmdecryption/modules/tg4"
_ "streamd/modules/bbc"
_ "streamd/modules/rte"
_ "streamd/modules/tg4"
)

View file

@ -4,7 +4,7 @@ import (
"flag"
"testing"
appreg "drmdecryption/app"
appreg "streamd/app"
)
// Every module must be constructible with no module.yaml present — a fresh clone

View file

@ -9,12 +9,12 @@ import (
"os"
"time"
"drmdecryption/adb"
appreg "drmdecryption/app"
"drmdecryption/capture"
"drmdecryption/modules/provider"
"drmdecryption/mpd"
"drmdecryption/uiflow"
"streamd/adb"
appreg "streamd/app"
"streamd/capture"
"streamd/modules/provider"
"streamd/mpd"
"streamd/uiflow"
)
func init() {

View file

@ -3,11 +3,11 @@ package bbc
import (
"testing"
appreg "drmdecryption/app"
"drmdecryption/capture"
"drmdecryption/modcfg"
"drmdecryption/modules/provider"
"drmdecryption/mpd"
appreg "streamd/app"
"streamd/capture"
"streamd/modcfg"
"streamd/modules/provider"
"streamd/mpd"
)
var (

View file

@ -4,8 +4,8 @@ import (
"regexp"
"time"
"drmdecryption/modcfg"
"drmdecryption/modules/provider"
"streamd/modcfg"
"streamd/modules/provider"
)
// Name is the module id (--app bbc).

View file

@ -6,8 +6,8 @@ import (
"strings"
"time"
"drmdecryption/adb"
"drmdecryption/uiflow"
"streamd/adb"
"streamd/uiflow"
)
// openExplorePage taps the Explore bottom-nav tab and waits for the channel rail.

View file

@ -9,12 +9,12 @@ import (
"strings"
"time"
"drmdecryption/adb"
appreg "drmdecryption/app"
"drmdecryption/capture"
"drmdecryption/modules/provider"
"drmdecryption/mpd"
"drmdecryption/uiflow"
"streamd/adb"
appreg "streamd/app"
"streamd/capture"
"streamd/modules/provider"
"streamd/mpd"
"streamd/uiflow"
)
func init() {

View file

@ -3,8 +3,8 @@ package c4
import (
"time"
"drmdecryption/modcfg"
"drmdecryption/modules/provider"
"streamd/modcfg"
"streamd/modules/provider"
)
// Name is the module id (--app c4).

View file

@ -6,8 +6,8 @@ import (
"strings"
"time"
"drmdecryption/adb"
"drmdecryption/uiflow"
"streamd/adb"
"streamd/uiflow"
)
func (a *App) openLiveTab(c *adb.Client) error {

View file

@ -1,9 +1,9 @@
module drmdecryption/modules
module streamd/modules
go 1.25.0
require drmdecryption v0.0.0
require streamd v0.0.0
require gopkg.in/yaml.v3 v3.0.1 // indirect
replace drmdecryption => ../pkg
replace streamd => ../pkg

View file

@ -3,8 +3,8 @@ package itv
import (
"time"
"drmdecryption/modcfg"
"drmdecryption/modules/provider"
"streamd/modcfg"
"streamd/modules/provider"
)
// Name is the module id (--app itv).

View file

@ -10,12 +10,12 @@ import (
"os"
"time"
"drmdecryption/adb"
appreg "drmdecryption/app"
"drmdecryption/capture"
"drmdecryption/modules/provider"
"drmdecryption/mpd"
"drmdecryption/uiflow"
"streamd/adb"
appreg "streamd/app"
"streamd/capture"
"streamd/modules/provider"
"streamd/mpd"
"streamd/uiflow"
)
func init() {

View file

@ -6,8 +6,8 @@ import (
"strings"
"time"
"drmdecryption/adb"
"drmdecryption/uiflow"
"streamd/adb"
"streamd/uiflow"
)
// openLiveTab taps bottom-nav Live. Accessibility desc is obfuscated as "Lyve";

View file

@ -3,8 +3,8 @@ package my5
import (
"time"
"drmdecryption/modcfg"
"drmdecryption/modules/provider"
"streamd/modcfg"
"streamd/modules/provider"
)
// Name is the module id (--app my5).

View file

@ -9,12 +9,12 @@ import (
"strings"
"time"
"drmdecryption/adb"
appreg "drmdecryption/app"
"drmdecryption/capture"
"drmdecryption/modules/provider"
"drmdecryption/mpd"
"drmdecryption/uiflow"
"streamd/adb"
appreg "streamd/app"
"streamd/capture"
"streamd/modules/provider"
"streamd/mpd"
"streamd/uiflow"
)
func init() {

View file

@ -6,8 +6,8 @@ import (
"strings"
"time"
"drmdecryption/adb"
"drmdecryption/uiflow"
"streamd/adb"
"streamd/uiflow"
)
func (a *App) appFocused(c *adb.Client) bool {

View file

@ -10,10 +10,10 @@ import (
"sort"
"strings"
"drmdecryption/capture"
"drmdecryption/modcfg"
"drmdecryption/phonecap"
"drmdecryption/repo"
"streamd/capture"
"streamd/modcfg"
"streamd/phonecap"
"streamd/repo"
)
// Common is the part of a module.yaml that every module has. Modules embed it in
@ -57,7 +57,7 @@ func (b *Base) ConfigPath() string { return b.cfg.Path }
func (b *Base) ConfigLoaded() bool { return b.cfg.Loaded }
// ProxyBin resolves the on-device MITM binary. Empty means “auto” (caller uses
// proxy.FindLocalBin — next to drm.exe, then repo bin/).
// proxy.FindLocalBin — next to streamd, then repo bin/).
func (b *Base) ProxyBin() string {
if b.common.ProxyBin != "" {
return modcfg.Resolve(b.common.ProxyBin)

View file

@ -3,9 +3,9 @@ package rte
import (
"time"
"drmdecryption/modcfg"
"drmdecryption/modules/provider"
"drmdecryption/mpd"
"streamd/modcfg"
"streamd/modules/provider"
"streamd/mpd"
)
// Name is the module id (--app rte).

View file

@ -12,7 +12,7 @@ import (
"strings"
"testing"
"drmdecryption/mpd"
"streamd/mpd"
)
// The rewriter must publish a usable manifest from the KID alone — this is the

View file

@ -6,7 +6,7 @@ import (
"strings"
"sync"
"drmdecryption/mpd"
"streamd/mpd"
)
func init() {

View file

@ -9,12 +9,12 @@ import (
"fmt"
"time"
"drmdecryption/adb"
appreg "drmdecryption/app"
"drmdecryption/capture"
"drmdecryption/modules/provider"
"drmdecryption/mpd"
"drmdecryption/uiflow"
"streamd/adb"
appreg "streamd/app"
"streamd/capture"
"streamd/modules/provider"
"streamd/mpd"
"streamd/uiflow"
)
func init() {

View file

@ -4,8 +4,8 @@ import (
"strings"
"testing"
appreg "drmdecryption/app"
"drmdecryption/mpd"
appreg "streamd/app"
"streamd/mpd"
)
// Compile-time proof the plugin satisfies every interface the host expects.

View file

@ -5,8 +5,8 @@ import (
"regexp"
"time"
"drmdecryption/adb"
"drmdecryption/uiflow"
"streamd/adb"
"streamd/uiflow"
)
// openLiveTab taps the bottom-nav Live tab and waits for channel chips.

View file

@ -6,9 +6,9 @@ import (
"net/http"
"strings"
appreg "drmdecryption/app"
"drmdecryption/brightcove"
"drmdecryption/session"
appreg "streamd/app"
"streamd/brightcove"
"streamd/session"
)
// playbackConfig is the app's remote config blob. It is decoded generically: the

View file

@ -3,9 +3,9 @@ package tg4
import (
"time"
"drmdecryption/modcfg"
"drmdecryption/modules/provider"
"drmdecryption/uiflow"
"streamd/modcfg"
"streamd/modules/provider"
"streamd/uiflow"
)
// Name is the module id (--app tg4).

View file

@ -5,10 +5,10 @@ import (
"path/filepath"
"strings"
"drmdecryption/brightcove"
"drmdecryption/repo"
"drmdecryption/session"
"drmdecryption/wvkey"
"streamd/brightcove"
"streamd/repo"
"streamd/session"
"streamd/wvkey"
)
// EnrichWithKeys fetches the HLS master, extracts the Widevine PSSH and resolves

View file

@ -5,8 +5,8 @@ import (
"strings"
"time"
"drmdecryption/adb"
"drmdecryption/uiflow"
"streamd/adb"
"streamd/uiflow"
)
// openLivePage navigates to the Live page: if a menu entry is visible tap it,

View file

@ -10,12 +10,12 @@ import (
"fmt"
"time"
"drmdecryption/adb"
appreg "drmdecryption/app"
"drmdecryption/capture"
"drmdecryption/modules/provider"
"drmdecryption/mpd"
"drmdecryption/uiflow"
"streamd/adb"
appreg "streamd/app"
"streamd/capture"
"streamd/modules/provider"
"streamd/mpd"
"streamd/uiflow"
)
func init() {

View file

@ -3,9 +3,9 @@ package tg4
import (
"testing"
appreg "drmdecryption/app"
"drmdecryption/modcfg"
"drmdecryption/modules/provider"
appreg "streamd/app"
"streamd/modcfg"
"streamd/modules/provider"
)
// Compile-time proof the plugin satisfies every interface the host expects.