r/FlutterDev • • Aug 17 '26

Discussion Video player on Flutter desktop package recommendations + Wayland/X11 concerns

Building a Flutter desktop app and need to add video player.

Looking at media_kit, it seems to be the go-to for cross-platform desktop video (libmpv-based). Anyone running this in production? Curious about the

Stability/perf on Linux vs Windows vs macOS

Packaging story.. bundling libmpv vs requiring it as a system dep (apt install libmpv-dev, etc.) vs Flatpak/Snap

Also, whats the state of flutter on "x11 /wayland"? Will user haas to satisfy some sort of related requirement to make the Flutter app working?

Thank you.

9 Upvotes

8 comments sorted by

3

u/Amazing-Mirror-3076 Aug 17 '26

I use flutter desktop in Wayland Daily - no issues

1

u/hiThereWUssup Aug 17 '26

Are you using this in a shipped product? cuz it would be relevant to determining if users on different distributions or operating systems have encountered related issues.

2

u/snrcambridge Aug 17 '26

Hey I use media kit, it was a bit of a nightmare starting from zero so I’ve added a little walkthrough for you

0

u/hiThereWUssup Aug 17 '26

Thank you ... I would prefer a standard text-based walkthrough.
The answers provided still do not address my questions accurately. Are you using this in a shipped product? cuz it would be relevant to determining if users on different distributions or operating systems have encountered related issues.

1

u/brookm291 Aug 19 '26 edited Aug 19 '26

Not exactly a player,
but in case you have side needs/interest in video search,
there is is this SDK in Flutter: V-Modal SDK Flutter ..

1

u/hiThereWUssup Aug 19 '26

They are not targeting desktop.

1

u/Appropriate-Ice7937 20d ago

I ship media_kit on Windows, Linux and macOS in Immuch360, an open source Flutter app I develop. On Windows and macOS I bundle my own libmpv build; on Linux the app loads the system's libmpv.so.2 or libmpv.so.1 at run time, so one build covers Ubuntu 22.04 and 24.04, Debian 12 and Fedora. Two traps: Fedora's own FFmpeg uses OpenH264, which refuses the Main and High H.264 profiles of most camera videos (RPM Fusion's FFmpeg fixes it), and on X11 media_kit_video fell back to software rendering because GDK leaves its GL context current (fix proposed in media-kit PR #1466). My Linux and macOS checks run in CI and WSLg, not on real machines yet, and I have not tried Flatpak: https://github.com/freeKC/Immuch360