dart_chromecast 0.3.3 dart_chromecast: ^0.3.3 copied to clipboard
Pure dart package to cast videos to your ChromeCast device and control their playback
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dart_chromecast
With Flutter:
$ flutter pub add dart_chromecast
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dart_chromecast: ^0.3.3
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dart_chromecast/casting/cast.dart';
import 'package:dart_chromecast/casting/cast_channel.dart';
import 'package:dart_chromecast/casting/cast_device.dart';
import 'package:dart_chromecast/casting/cast_media.dart';
import 'package:dart_chromecast/casting/cast_media_status.dart';
import 'package:dart_chromecast/casting/cast_sender.dart';
import 'package:dart_chromecast/casting/cast_session.dart';
import 'package:dart_chromecast/casting/connection_channel.dart';
import 'package:dart_chromecast/casting/heartbeat_channel.dart';
import 'package:dart_chromecast/casting/interfaces/log_interface.dart';
import 'package:dart_chromecast/casting/media_channel.dart';
import 'package:dart_chromecast/casting/receiver_channel.dart';
import 'package:dart_chromecast/proto/cast_channel.pb.dart';
import 'package:dart_chromecast/proto/cast_channel.pbenum.dart';
import 'package:dart_chromecast/proto/cast_channel.pbjson.dart';
import 'package:dart_chromecast/proto/cast_channel.pbserver.dart';
import 'package:dart_chromecast/utils/mdns_find_chromecast.dart';
import 'package:dart_chromecast/writer.dart';