A Flutter plugin to detect the codec of a video file on Android and iOS.
- Detects the video codec (e.g.,
avc1,hvc1, etc.) from a local video file.
Add this to your pubspec.yaml:
dependencies:
video_codec_plugin: ^1.1.0Then run:
flutter pub getimport 'package:video_codec_plugin/video_codec_plugin.dart';
final plugin = VideoCodecPlugin();
Future<void> detectCodec(String filePath) async {
final codec = await plugin.detectVideoCodec(filePath);
print('Detected codec: $codec');
}- ✅ iOS
- ✅ Android
MIT