2.7 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.
apps/modules/bbc/module.yaml is published in the repo (package + channel map only;
no secrets). 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\drm.exe proxy install-ca --reinject
adb shell am force-stop bbc.iplayer.android
.\bin\drm.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; waits for mpd and writes a session:
# NordVPN UK ON. Magisk CA should already be mounted.
.\bin\drm.exe capture --app bbc --channel bbcone --wait 120
# Play BBC One on the phone when prompted.
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\drm.exe proxy stop
adb shell "su -c 'sh /data/local/tmp/tproxy_iptables.sh stop; killall -9 appproxy 2>/dev/null; true'"
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.