A cross-platform video player for Flet apps.
It is based on the media_kit Flutter package.
Detailed documentation to this package can be found here.
| Platform | Windows | macOS | Linux | iOS | Android | Web |
|---|---|---|---|---|---|---|
| Supported | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
To install the flet-video package and add it to your project dependencies:
-
Using
uv:uv add flet-video
-
Using
pip:pip install flet-video
After this, you will have to manually add this package to your
requirements.txtorpyproject.toml.
Note
To play video on Linux/WSL you need to install libmpv library:
sudo apt update
sudo apt install libmpv-dev libmpv2If you encounter libmpv.so.1 load errors, run:
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpv.so /usr/lib/libmpv.so.1For examples, see these.