Null-DRM-Official/docs/providers/bbc.md
404errordeveloper c1948a1439
All checks were successful
release / build-and-upload (push) Successful in 16m53s
fixed issues with CA now generates its own new cert
2026-10-08 20:16:08 +02:00

112 lines
3.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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:
```yaml
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](../capture.md#transparent-capture-vpn-on-the-phone).
### Manual transparent (recommended when debugging)
```powershell
# 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:
```powershell
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:
```powershell
# 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
```powershell
.\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:
```powershell
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
```powershell
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.