firebase_ai sendMediaStream Removed: Migration Guide

Upgraded to firebase_ai 5.0.0 and your Live API audio streaming broke? LiveSession.sendMediaStream was removed — here's the numbered migration to sendAudioRealtime, sendVideoRealtime, and sendTextRealtime with InlineData and RealtimeInputConfig.

You ran flutter pub upgrade , firebase_ai jumped to 5.0.0, and now every line that streams microphone audio is red: firebase_ai sendMediaStream removed. Your voice agent won't compile, the old tutorials still show the dead API, and the release notes just say "removed." Here's the migration that gets you green again. 🎬 Watch: send_realtime() for Continuous Streams 🎬 Watch: Build a real-time voice AI agent: send_realtime streaming At 5:01 Annie Wang breaks down send_realtime() for continuous mic streaming vs send_content() for discrete input — the exact realtime-input concept that replaces sendMediaStream — plus the 6:30 run_live segment on audio, captions, and interruptions. 9:00 ⏱ 9:00 · Google Cloud — click to play inline, or watch on YouTube . What the Breakage Looks Like: firebase_ai sendMediaStream Removed After upgrading to firebase_ai 5.0.0 (Flutter BoM 5.0.0, released October 15, 2026), any Live API code written against the old streaming surface fails at compile time: await session.sendMediaStream(audioChunks); // Error: The method 'sendMediaStream' isn't defined for the type 'LiveSession'. // Try correcting the name to the name of an existing method, or defining // a method named 'sendMediaStream'. References to the old MediaData payload class break the same way — it was removed alongside the method. If you followed an older tutorial (several still rank, including a 479-day-old Medium walkthrough calling _session.sendMediaStream(audioData) ), that code is now dead on arrival. The fix is mechanical, but you have to know the three replacement methods and the new payload type. Why Google Removed It This wasn't a surprise deprecation — it was a scheduled execution. The old streaming methods were deprecated in the…

Explore