Back to Flet

flet-video

sdk/python/packages/flet-video/README.md

0.85.0.dev21.9 KB
Original Source

flet-video

A cross-platform video player for Flet apps.

It is based on the media_kit Flutter package.

Documentation

Detailed documentation to this package can be found here.

Platform Support

PlatformWindowsmacOSLinuxiOSAndroidWeb
Supported

Usage

Installation

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

  • Using uv:

    bash
    uv add flet-video
    
  • Using pip:

    bash
    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 libmpv library:

bash
sudo apt update
sudo apt install libmpv-dev libmpv2

If you encounter libmpv.so.1 load errors, run:

bash
sudo ln -s /usr/lib/x86_64-linux-gnu/libmpv.so /usr/lib/libmpv.so.1

Examples

For examples, see these.