End-to-end exercise of the M2 pipeline — subsystem hook, port allocation, two-track forwarding, WHEP handshake — without spinning up a full Core HTTP server: - Fire onProcessStart directly to get the two RTP legs back - Parse video + audio UDP ports out of the leg addresses, assert adjacency - Mount the Handler on an Echo httptest server - Build a Pion PeerConnection (recvonly video + audio), POST its offer, feed the answer back in - Spray synthetic RTP packets at both loopback sockets - Assert both OnTrack callbacks fire and each delivers at least one RTP packet within 10s - DELETE via the returned Location header to confirm teardown Passes cleanly under -race in ~1s. Catches regressions across the whole M2 wiring from a single fixture. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| ffmigrate | ||
| import | ||
| webrtc | ||
| version.go | ||