CastnPlay: Integrating Chromecast & Airplay in Flutter
summary
A Flutter app adds Chromecast and AirPlay support end-to-end: a pigeon-generated bridge wires Flutter to native, Android uses Google Cast SDK with MDNS discovery and a custom device list, iOS uses AVRouteDetector/AVPlayer with allowsExternalPlayback, and playback controls (play/pause/seek) come from the receiver. The repo includes starter and final projects and a checklist of 11 TODOs. The demo connects to a Chromecast dongle and AirPlay device on real phones and successfully loads and controls media without Pub.dev casting packages.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 7:53Google Cast technology
- 11:51AirPlay vs Google Cast
- 14:02Final casting app demo
- 21:00Flutter project setup
- 27:41Flutter native bridging
- 28:25AirPlay discovery
- 30:10Google Cast setup
- 33:03Casting sessions
- 36:33AirPlay playback
- 37:59Google Cast playback
- 41:11Testing demo
- 43:17Advanced casting features
- 46:06Customizing receivers
- 47:31Q&A








