flutter_media_info 0.0.3 flutter_media_info: ^0.0.3 copied to clipboard
Library for use LibMediaInfo in flutter with support for macos, windows, linux.
FlutterMediaInfo #
Library for use LibMediaInfo in flutter with support for macos, windows, linux.
Get started #
Minimal system requirements #
- Ubuntu 20.04 x64
- Windows 7 x64
- macOS 10.10 x64
Add dependency #
dependencies:
flutter_media_info: ^0.0.3
Example: #
import 'package:flutter_media_info/flutter_media_info.dart';
void printVideoDuration() {
final mi = Mediainfo.init();
mi.quickLoad("/home/user/myVideo.mp4");
final movieDuration = mi.getInfo(MediaInfoStreamType.mediaInfoStreamVideo, 0, "Duration/String2");
mi.close();
print('Duration: ${movieDuration}');
}
License #
This product uses MediaInfo library, Copyright (c) 2002-2023 MediaArea.net SARL.