← Selected work
NATIVE MEDIA / PUB.DEV / PACKAGE STUDY
flutter_media_kit

Hardened Android native video and audio binaries for MediaKit.

Android native library provider for package:media_kit and media_kit_video, delivering 16 KiB ELF-aligned ARM64 and x64 libmpv builds with EGL context fallback and SHA-256 Gradle verification.

FlutterAndroid NDKlibmpv / FFmpegpub.dev v1.3.8MIT / LGPLv3

Published Dart & Flutter package architecture. Verified source, API documentation, and releases on pub.dev.

PACKAGE ENGINEERING

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.

PUB.DEV VERSION1.3.8+ppplayer.egl1
PUB POINTS160 / 160
TARGET PLATFORMAndroid (API 21+)
ARCHITECTURESarm64-v8a & x86_64
ELF ALIGNMENT16 KiB Page Verified
DART / FLUTTER>=2.17.0 / >=3.3.0
INTEGRITY CHECKGradle SHA-256 Manifest
LICENSINGMIT Wrapper + LGPLv3 Native
QUICK START & INTEGRATION

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.

pubspec.yaml — Drop-In Android Native Provider for MediaKitANDROID NDK / LIBMPV
pubspec.yaml
dependencies:
  media_kit: ^1.2.3
  media_kit_video: ^2.0.1
  flutter_media_kit: 1.3.8+ppplayer.egl1
lib/main.dart
void main() {
  WidgetsFlutterBinding.ensureInitialized();
  MediaKit.ensureInitialized();
  runApp(const MyApp());
}
01. Compatible MediaKit Initialization. Replaces media_kit_libs_android_video and the media_kit_libs_video umbrella to avoid duplicate Java classes, while keeping MediaKit.ensureInitialized() and the entire media_kit Dart API intact.
TECHNICAL ARCHITECTURE

Reproducible native media engineering.

Built from pinned libmpv and FFmpeg revisions in sources.lock.json with automated SHA-256 verification and transparent licensing.

01

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.

02

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.

03

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.

04

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.

NATIVE BUILD & COMPLIANCE MATRIX

Targets, Verification & License Scope

160 / 160 PUB POINTS
SUPPORTED TARGETS
  • 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
VALIDATION & ARTIFACTS
  • 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
LICENSE OBLIGATIONS
  • 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
OPEN SOURCE & VERIFIED PUBLISHER

Maintained under devflier.com.

Built for PPPlayer and shared openly on pub.dev and GitHub with pinned build scripts, SHA-256 manifests, and full LGPLv3 corresponding source archives.

EXPLORE PACKAGEflutter_story_encoderEXPLORE PACKAGEbr_code_pixEXPLORE PACKAGE@lucasveneno/trafficbotEXPLORE PLATFORMAutomotive DTC Codes Platform
LET’S BUILD WHAT’S NEXTIDEA → PRODUCTION

Have something
worth building?

Tell us what you’re working on.

Start a conversation

New product · Existing platform · Engineering partnership · Technical challenge