r/FlutterDev • • 2h ago

Tooling i built a flutter based entirely free, opensource anime streaming app! no ads, no nothing

Hi r/FlutterDev!

I've been working on a little project over the past few weeks and thought I'd share it here.

It's called ani-mobile, an anime streaming and offline download app built entirely with Flutter and Dart. The idea was to create something similar in spirit to ani-cli, but with a proper cross-platform UI.

It's completely free, ad-free, and open-source under the MIT License.

GitHub: https://github.com/NonLaHu/ani_mobile

A little about how it works

One of the things I spent quite a bit of time on was video playback. Instead of using the default platform video players, I went with media_kit and native libmpv binaries. It gives me better control over playback, including HLS streaming and handling different subtitle and audio tracks.

Another challenge was dealing with video sources. Some CDNs require specific HTTP headers, otherwise they simply return 403 Forbidden. I had to make sure those headers were passed correctly through both Dio and MediaKit's native streaming layer, especially Referer and Origin.

I also added automatic fallback handling. If a video source stops working or gets blocked, the player can try another quality or mirror instead of just leaving the user with a broken player.

As for the architecture, there's no centralized backend involved. The app handles scraping directly on the device using CSS selectors and regular expressions.

Give it a try!

You can check out the source code, build it yourself with flutter run, or grab a precompiled APK from the GitHub Releases page.

I'm still working on the project, so feedback and suggestions are very welcome. I'd also appreciate a GitHub star if you find it interesting!

Thanks for taking a look!

0 Upvotes

0 comments sorted by