flutter_playout 2.0.2-rc1 flutter_playout: ^2.0.2-rc1 copied to clipboard
This plugin provides audio/video playback from a URL with background audio support, lock screen controls & player events for both iOS and Android.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_playout
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_playout: ^2.0.2-rc1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_playout/audio.dart';
import 'package:flutter_playout/multiaudio/HLSManifestLanguage.dart';
import 'package:flutter_playout/multiaudio/LanguageCode.dart';
import 'package:flutter_playout/multiaudio/MultiAudioSupport.dart';
import 'package:flutter_playout/player_observer.dart';
import 'package:flutter_playout/player_state.dart';
import 'package:flutter_playout/textTrack.dart';
import 'package:flutter_playout/video.dart';