sdk/python/packages/flet-video/README.md
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.txt or pyproject.toml.
[!NOTE] To play video on Linux/WSL you need to install
libmpvlibrary:bashsudo apt update sudo apt install libmpv-dev libmpv2If you encounter
libmpv.so.1load errors, run:bashsudo ln -s /usr/lib/x86_64-linux-gnu/libmpv.so /usr/lib/libmpv.so.1
For examples, see these.