Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anandnet/flutter_video_info
A flutter plugin to get basic metadatainfo of a video file.
https://github.com/anandnet/flutter_video_info
Last synced: 8 days ago
JSON representation
A flutter plugin to get basic metadatainfo of a video file.
- Host: GitHub
- URL: https://github.com/anandnet/flutter_video_info
- Owner: anandnet
- License: mit
- Created: 2020-02-04T21:02:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-10T03:32:36.000Z (7 months ago)
- Last Synced: 2024-06-21T00:17:32.190Z (5 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/flutter_video_info
- Size: 136 KB
- Stars: 9
- Watchers: 5
- Forks: 25
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
This plugin uses MediaMetadataRetriever class of native android to get basic meta information
of a video file.The following info can be extracted by this plugin:
`title`
`path`
`author`
`mimetype`
`height`
`width`
`filesize`
`duration`
`orientation`
`date`
`framerate`
`location`## Installation & Uses
Add `flutter_video_info` as a dependency in your pubspec.yaml file ([what?](https://flutter.io/using-packages/)).
```
dependencies:
flutter_video_info:
```Import FlutterVideoInfo in your dart file.
```dart
import 'package:flutter_video_info/flutter_video_info.dart';final videoInfo = FlutterVideoInfo();
String videoFilePath = "your_video_file_path";
var info = await videoInfo.getVideoInfo(videoFilePath);//String title = info.title; to get title of video
//similarly path,author,mimetype,height,width,filesize,duration,orientation,date,framerate,location can be extracted.```
## for iOS
If you select a video from your photo library,
Add the following keys to your Info.plist file, located in /ios/Runner/Info.plist:NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
## Troubleshooting
Checkout here
## PR is welcomed
Anyone can pr for these issues
Thanks for your PR Over IOException issue @martinale14,@devianl2 and @nagendarbalajij-devs