Skip to content

flet-video#

pypi downloads license

A cross-platform video player for Flet apps.

It is based on the media_kit Flutter package.

Platform Support#

This package supports the following platforms:

Platform Supported
Windows
macOS
Linux
iOS
Android
Web

Usage#

Installation#

To install the flet-video package and add it to your project dependencies:

uv add flet-video
pip install flet-video  # (1)!
  1. After this, you will have to manually add this package to your requirements.txt or pyproject.toml.
poetry add flet-video
Windows Subsystem for Linux (WSL)

On WSL, you need to additionally install the libmpv library.

If you receive error while loading shared libraries: libmpv.so.1: cannot open shared object file: No such file or directory, it means libmpv library is not installed in your WSL environment.

To install it, run the following commands:

sudo apt update
sudo apt install libmpv-dev libmpv2
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpv.so /usr/lib/libmpv.so.1

Examples#

See these.