Null-DRM-Official/docs/providers/bbc.md
404errordeveloper f9c28be3f1
All checks were successful
release / build-and-upload (push) Successful in 6m8s
modules-release / build-and-upload (push) Successful in 4m47s
v0.1.1: external modules, publish YAML, proxy reset, binary-first README
- Host discovers/builds modules under modules/ (bbc, rte, tg4)
- module-publish.yaml tracked; local module.yaml gitignored
- drm --modules-dir / DRM_MODULES_DIR
- drm proxy reset; Magisk reinject reliability
- modules-v* Forgejo release workflow + build scripts
- BBC full Explore channel map including S4C
- README quickstart based on release binaries
2026-10-08 23:16:14 +02:00

3.5 KiB
Raw Permalink Blame History

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.

# 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. 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\drm.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\drm.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.