flutter_fling 1.0.0 copy "flutter_fling: ^1.0.0" to clipboard
flutter_fling: ^1.0.0 copied to clipboard

outdated

A simple flutter plugin to cast media to FireTv and FireStick.

flutter_fling #

Simple plugin to cast media to FireStick and FireTv.

Utilises Amazon's Fling SDK.

NOTE: This plugin currently fling/cast from Android Devices. iOS support soon.

Installation #

Add package to pubspec.yaml

flutter_fling: ^1.0.0

Add import

import 'package:flutter_fling/flutter_fling.dart';

Usage

Get Players
List<RemoteMediaPlayers> remotePlayers = await FlutterFling.players;
Play media
await FlutterFling.play(
        player: desiredRemoteMediaPlayer,
        mediaUri: "video link",
        mediaTitle: "Some Video");
Pause Player
await FlutterFling.pausePlayer();
Resume Player
await FlutterFling.playPlayer();
Stop Player
await FlutterFling.pausePlayer();
Seek Forward Player
await FlutterFling.seekForwardPlayer();
Seek Back Player
await FlutterFling.seekBackPlayer();

Mute/Unmute Player

await FlutterFling.mutePlayer(bool);
Player state
await FlutterFling.playerState();
Possible player states:

Preparing Media, Ready to Play, Playing, Paused, Finished, Seeking, Error, No source.

4
likes
0
pub points
26%
popularity

Publisher

unverified uploader

A simple flutter plugin to cast media to FireTv and FireStick.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_fling