DEV Community

Husnain ali
Husnain ali

Posted on

Building OpenFlix: Tuning a Flutter + libmpv Android Media Client for 3GB RAM Devices

I just released v1.0.0 of OpenFlix, an open-source (GPL-3.0), OLED-black Android media client built with Flutter and media_kit (libmpv).

The Constraint: 3GB RAM Hardware

Image-heavy media apps tend to stutter or get OOM-killed on budget Android phones. I test OpenFlix daily on a 3GB RAM device, so most of the optimization went into keeping scrolling at 60fps:

  • Bounded image caches & capped bitmap decoding so horizontal poster carousels don't spike heap memory
  • Custom poster-by-poster scroll snapping for clean horizontal shelves
  • Lazy-loaded collections instead of hydrating metadata rows upfront

Key Features

  • Native libmpv playback (media_kit) with an in-player source switcher, Skip Intro, Play Next, and remembered audio/subtitle tracks
  • 1-click TMDB OAuth sync for watchlists, likes, custom lists, and curated collections
  • Unified addon resolver for your own Stremio manifests and CloudStream repositories
  • Built-in update checker pulling signed arm64-v8a and universal APKs directly from GitHub Releases

OpenFlix is strictly a media client and metadata browser—no media is hosted or bundled.

Feedback on the Flutter memory tuning, media_kit setup, or UI is welcome!

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

The 3GB RAM constraint is what makes this interesting — most media apps just assume a flagship, so testing daily on a 3GB device and targeting 60fps scrolling is a real discipline. The bounded image caches and capped bitmap decoding stood out to me, since poster carousels are exactly where heap spikes usually come from. Did the poster-by-poster scroll snapping cost you anything in smoothness on that 3GB device, or did it actually help keep the 60fps target?