flutter_hls_video_player 1.0.1
flutter_hls_video_player: ^1.0.1 copied to clipboard
A highly customizable and efficient HLS (m3u8) video player for Flutter applications. Supports adaptive bitrate, custom UI controls, and seamless streaming on Android & iOS.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_hls_video_player
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_hls_video_player: ^1.0.1
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_video_player/flutter_hls_video_player/animation/fade.dart';
import 'package:flutter_hls_video_player/flutter_hls_video_player/controller/flutter_hls_video_controls.dart';
import 'package:flutter_hls_video_player/flutter_hls_video_player/controller/flutter_hls_video_player_controller.dart';
import 'package:flutter_hls_video_player/flutter_hls_video_player/controller/flutter_hls_video_player_state.dart';
import 'package:flutter_hls_video_player/flutter_hls_video_player/view/flutter_hls_video_player.dart';
import 'package:flutter_hls_video_player/flutter_hls_video_player/view/hls_video_player_html.dart';
import 'package:flutter_hls_video_player/flutter_hls_video_player/widgets/seek_arrow_animation.dart';