This commit is contained in:
parent
2fa8f2435f
commit
71d641eca6
5 changed files with 264 additions and 7 deletions
|
|
@ -38,21 +38,60 @@ channels:
|
|||
vpid: bbc_two_england
|
||||
```
|
||||
|
||||
## Capture
|
||||
## Capture (NordVPN UK on the phone)
|
||||
|
||||
```bash
|
||||
# Leave NordVPN UK ON. Magisk CA should already be mounted (skip --reinject).
|
||||
./bin/drm capture --app bbc --channel bbcone --wait 120
|
||||
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).
|
||||
|
||||
Replay:
|
||||
### 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'"
|
||||
```
|
||||
|
||||
### 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). Some CDNs reject HEAD; use GET / ffplay as above.
|
||||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue