- 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
3.5 KiB
BBC module — filling in module.yaml
BBC iPlayer (Android). Streams from the mobile-phone-main mediaset are clear
(CDN signed URLs); capture only needs the MPD/HLS master. Transparent MITM keeps
NordVPN UK on the phone.
Universal values live in modules/bbc/module-publish.yaml (package + full Explore
channel map, including S4C). Local module.yaml is gitignored and only needs
install overrides. Release zips rename publish → module.yaml. Skeleton:
package: bbc.iplayer.android
proxy_bin: bin/proxy-android-arm64
ca_hash: "6c3578b4"
score:
hosts:
- open.live.bbc.co.uk
- vs-cmaf-push-uk
- vod-dash-uk
- akamaized.net
- bbci.co.uk
- bidi.net.uk
deny:
- telemetry.api.bbci
- bag.api.bbc
- thumbnail
aliases:
one: bbcone
bbc1: bbcone
channels:
bbcone:
label: BBC One
vpid: bbc_one_london
bbctwo:
label: BBC Two
vpid: bbc_two_england
Capture (NordVPN UK on the phone)
BBC needs a UK egress IP. Keep NordVPN UK on the phone. Capture must use
transparent MITM (iptables REDIRECT) so it does not fight the VPN. Classic
Wi‑Fi http_proxy is the wrong tool here.
Full background: capture.md — Transparent capture.
Manual transparent (recommended when debugging)
# NordVPN UK ON
.\bin\streamd.exe proxy install-ca --reinject
adb shell am force-stop bbc.iplayer.android
.\bin\streamd.exe proxy transparent --package bbc.iplayer.android
# Play BBC One on the phone. Ctrl+C → stop iptables + pull.
Artifacts on device: /data/local/tmp/capture/bbc.iplayer.android/
(cap.json, traffic.jsonl, appproxy.log). Host pull lands in
outputs/transparent/<stamp>/.
Pull without stopping:
adb pull /data/local/tmp/capture/bbc.iplayer.android .\bbc-cap
Module-driven capture
Same transparent path under the hood. With --channel, the module auto-plays:
Explore → channel logo → Watch live (uiautomator scan, same idea as RTE/TG4).
# NordVPN UK ON. Magisk CA should already be mounted. Phone unlocked.
.\bin\streamd.exe capture --app bbc --channel bbcone --wait 120
--channel implies interactive navigation. Drop the channel flag and play by hand
if you only want launch + MITM.
Console prints the MPD in a banner; outputs/bbc/<stamp>/session.json holds the
same fields (mpd required; no key / pssh for clear streams).
Cleanup if playback breaks after a run
.\bin\streamd.exe proxy stop
adb shell "su -c 'sh /data/local/tmp/tproxy_iptables.sh stop; killall -9 appproxy 2>/dev/null; true'"
appproxy failed to start (transparent)
Usually a CA cert/key mismatch left on the phone from an older build. Current
builds keep a per-install CA under data/proxy-ca.crt + data/proxy-ca.key
and push both. Fix:
drm proxy install-ca --reinject
adb shell am force-stop bbc.iplayer.android
drm capture --app bbc --channel bbcone --wait 120
You should see a unique hash on first run ([+] Wrote data\proxy-ca.crt …) and
[+] Pushed matching CA key. Do not share data/proxy-ca.key between users.
Replay
ffplay -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120.0.0.0 Safari/537.36" -i "<mpd url>"
PC needs a UK egress IP (VPN) as well. Some CDNs reject HEAD; use GET / ffplay as above.
Confirm UK with https://ipinfo.io on the phone (country = GB) before play —
catalog can load from outside the UK while mediaselector / streams return 403.