video_duration_native 0.2.3
video_duration_native: ^0.2.3 copied to clipboard
Lightweight native duration reader (Android/iOS) by path or content URI. No FFmpeg, no byte loading.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add video_duration_nativeThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
video_duration_native: ^0.2.3Alternatively, 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:video_duration_native/video_duration_native.dart';