flutter_chrome_cast
2.0.0, released 6 weeks ago by felnanuke.com.br
Integrate Google Cast devices to discover, connect, and control media playback.
What it does
A Flutter plugin for integrating Google Cast SDK on Android and iOS. Enables discovery of Chromecast and Cast-enabled devices, session management, and media streaming controls.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to stream media from your Flutter app to Chromecast and Google Cast-enabled receivers.
- You require cross-platform device discovery and session management for Google Cast.
Skip it when
- You need to integrate with non-Chromecast or DLNA devices (use media_cast_dlna instead).
- You only need local audio or video playback without casting.
Strengths
- Supports cross-platform discovery and media streaming on Android and iOS.
- Provides stream-based APIs for real-time status updates.
- Includes modular imports to optimize bundle size and compile times.
Weaknesses
- Requires platform-specific configuration in Info.plist and AndroidManifest.xml.
- Android Cast SDK-internal logs cannot be fully configured due to CAF limitations.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 5
Requires adding permissions and metadata to AndroidManifest.xml and local network usage descriptions and Bonjour services configuration to iOS Info.plist.
import 'package:flutter_chrome_cast/flutter_chrome_cast.dart';
Future<void> initPlatformState() async {
const appId = GoogleCastDiscoveryCriteria.kDefaultApplicationId;
final options = GoogleCastOptionsAndroid(appId: appId);
GoogleCastContext.instance.setSharedInstanceWithOptions(options);
}Alternatives
Packages that do the same job and could replace flutter_chrome_cast.
- video_trimmer
Trim videos in Flutter on Android, iOS, macOS, and the web
83Compare - flutter_media_session
Flutter plugin for OS media integration across Android, iOS, macOS, Windows, Linux, and Web
78Compare - flutter_screen_recording
Record device screen on Android, iOS, and web with optional audio.
71Compare - media_kit_video
Native implementation for video playback in package:media_kit.
73Compare
Works with
Packages commonly used together with flutter_chrome_cast: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfaceflutter_chrome_cast depends on itReusable base class for platform interfaces of Flutter federated plugins.
- rxdartflutter_chrome_cast depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- permission_handlerflutter_chrome_cast depends on itCross-platform API to check and request permissions on iOS, Android, Web, and Windows.
- getflutter_chrome_cast depends on itAll-in-one framework for reactive state management, context-less routing, and dependency injection.
- marqueeflutter_chrome_cast depends on itA Flutter widget that scrolls text infinitely.