flutter_hls_audio_player 0.2.0 icon indicating copy to clipboard operation
flutter_hls_audio_player: ^0.2.0 copied to clipboard

This plugin streams audio from hls url works on both iOS and Android.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_hls_audio_player

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  flutter_hls_audio_player: ^0.2.0

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_hls_audio_player/audio.dart';
import 'package:flutter_hls_audio_player/player_state.dart';
import 'package:flutter_hls_audio_player/video.dart';
import 'package:flutter_hls_audio_player/player_observer.dart';