media_info 0.4.0

media_info #


Utilizes platform code to determine audio, video & photo properties.

Depending on the underlying platform version, various workarounds will be applied to fetch the fields.

Currently supported properties:

  • width
  • height
  • frame rate
  • duration (in milliseconds)
  • mime type
  • number of tracks

Additionally, thumbnails can be generated.

0.4.0 #

  • Replace Kotlin with Java
  • Various bugfixes

0.3.0 #

  • Ensure Android results are always submitted on the main thread

0.2.2+1 #

  • Do not return invalid values when detection fails. Throw flutter errors instead.

0.2.2 #

  • iOS: Read mimeType
  • iOS: Detect image width & height

0.2.1 #

  • Prevent crashes on iOS when asset track list is empty.

0.2.0 #

  • Require object instance to instead of providing static methods. This improves mocking & testing capabilities.

0.1.0 #

  • getMediaInfo implementation for iOS
  • generateThumbnail implementation for iOS
  • improve generateThumbnail API to return a Future

0.0.4+1 #

  • Bump gradle plugin version

0.0.4 #

  • Set Android compile SDK version to 28
  • Migrate to AndroidX

0.0.3+1 #

  • Upgrade gradle & kotlin dependencies

0.0.3 #

  • [Android] Thumbnail support for video / image files

0.0.2 #

  • Detect mimeType

0.0.1 #

  • Initial Release with Android platform support.


media_info_example #

Demonstrates how to use the media_info plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  media_info: ^0.4.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:media_info/media_info.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Aug 21, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.4


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
file_picker ^1.3.2
path_provider ^0.5.0