Skip to content
pubscout

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.

$ flutter pub add flutter_chrome_cast
Source repository

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.

Works with

Packages commonly used together with flutter_chrome_cast: ones it builds on, ones built on it, and its own family.