Nerd sniping myself into a rabbit hole. Streaming online audio to a Sonos speaker
summary
An Android app is built that actually plays YouTube audio on Sonos by discovering speakers with SSDP broadcast discovery, sniffing traffic with tcpdump on UniFi AP, and reverse‑proxying a streamed conversion from mp4 AAC into ADTS on the phone. Tools used: soco/UPnP SOAP control, mp4parser library, Ktor embedded web server, and fallback experiments with FFmpeg (too slow for long streams). The app repackages samples into ADTS frames on the fly and it works — demos show audio plus artwork and title on the Sonos.
AI-written summary · about
chapters (19)
- 0:00Start
- 4:04Now what...
- 7:10Connect to speakers
- 7:49Get MP4 URL of online videce
- 10:01Send URL to speakers
- 11:45Maybe it's that SoCo libras
- 12:23Sniffing the network
- 15:08SOAP payload
- 17:12Maybe it's the MP4 format
- 22:06deadfood
- 24:31Architecture
- 25:27Technology choices
- 28:06Research...
- 29:27It all starts with a manifest!
- 29:57And checking the intent...
- 31:42SSDP Simple Device Discovery Protocol
- 34:41MP4 to ADTS - FFMpeg?
- 36:21MP4, ADTS, Atoms, Boxes
- 49:20In summary...
related talks
43mHome Multimedia and Automation Systems with GStreamer
22mAndroid Built for Radio over IP
55mStreaming and playback of video over raw sockets and codecs
55mEtherify, sonify: soft tempest at home and on the farm
26mSDR Analog Video Decoding Adventures
18mRTC3
53mHacking the Wireless World with Software Defined Radio - 2.0
41mListening to the Radio with Rust
