Hardened Android libmpv binaries with EGL fallback and verified builds.
Reliable hardware video playback on Android requires wrestling with fragmented GPU drivers, 16 KiB ELF page alignment rules on modern Android releases, and reproducible native C/C++ build provenance.
flutter_media_kit is DevFlier's Android native-library provider for package:media_kit and media_kit_video, built and maintained for PPPlayer. It preserves upstream MediaKit JNI helpers and Java package identifiers so existing Dart playback code works without modification.
Unlike opaque binary drops, every published release bundles pre-verified ARM64 and x64 JARs checked against a SHA-256 Gradle manifest, an EGL context retry path for picky drivers, and a complete corresponding-source archive with build recipes.
Drop-in installation and Dart API.
Published as flutter_media_kit on pub.dev (v1.3.8+ppplayer.egl1, published Oct 6, 2026) with 160 / 160 pub points.
dependencies:
media_kit: ^1.2.3
media_kit_video: ^2.0.1
flutter_media_kit: 1.3.8+ppplayer.egl1void main() {
WidgetsFlutterBinding.ensureInitialized();
MediaKit.ensureInitialized();
runApp(const MyApp());
}Reproducible native media engineering.
Built from pinned libmpv and FFmpeg revisions in sources.lock.json with automated SHA-256 verification and transparent licensing.
GLES EGL Context Fallback
When an Android device rejects optional EGL context attributes during initialization, the patched build retries GLES context creation without optional flags while preserving the requested GLES version.
16 KiB Alignment & Mbed TLS Fix
Ships arm64-v8a and x86_64 native binaries verified for 16 KiB ELF alignment alongside a backported Mbed TLS ARM64 AES compiler-attribute fix for reliable HTTPS stream playback.
Offline Bundled JARs & SHA-256 Gate
Both native JARs are bundled directly in the package—no binaries are downloaded during app compilation. A Gradle verification task rejects missing or altered JARs via the bundled SHA-256 manifest.
Corresponding Source & License Provenance
While the Flutter/Java wrapper uses the upstream MIT license, mpv (GPL disabled) and FFmpeg (--enable-version3, LGPLv3) include full NOTICE.md files, license texts, and native_sources/corresponding-source.tar.gz.
Targets, Verification & License Scope
- Android ARM64 (arm64-v8a), API 21+
- Android x64 (x86_64), API 21+
- Excludes 32-bit ARMv7 / x86 by design
- Use ndk.abiFilters for arm64-v8a & x86_64
- Pair with other OS providers for desktop/iOS
- Android 15/16 emulator playback acceptance
- Consumer APK build with SHA-256 verification
- Pinned revisions & patch hashes in sources.lock.json
- Runnable example/ app with media URL controls
- Maintained actively for PPPlayer releases
- Wrapper & retained JNI helper: MIT License
- FFmpeg built with --enable-version3 (LGPLv3)
- mpv built with GPL features disabled
- Bundled NOTICE.md & licenses/ directory
- Bundled corresponding-source.tar.gz archive