A package tool that provide basic video player for flet.
Project description
flet_ived
A package tool that provide basic video player for flet. Its super easy to use, its built to be used as a normal flet
control.
installation
To install, just type:
pip install flet_ivid --upgrade
usage
To start show your video inside your flet
app, you can just import the VideoContainer
control and use its properties, for example:
from flet_ivid import VideoContainer # import the package
import flet
def main (page:flet.Page):
page.bgcolor = "black"
vc = VideoContainer("yourvideo.mp4", border_radius=18, expand=True) # This is a VideoContainer
page.add(flet.Row([vc], alignment="center"))
vc.play() # call `play` function to make the video start playing.
# Call `vc.pause()` to stop the video from playing.
flet.app(target=main)
⚠️ If your device is old!
This package can load the video from file source while show the video at the same time. But this is not so with old devices or the devices that have a weak performance, So you must set play_after_loading
to true. For example:
from flet_ivid import VideoContainer # import the package
import flet
def main (page:flet.Page):
page.bgcolor = "black"
vc = VideoContainer("yourvideo.mp4", play_after_loading=True, border_radius=18, expand=True) # This is a VideoContainer
page.add(flet.Row([vc], alignment="center"))
vc.play() # call `play` function to make the video start playing.
# Call `vc.pause()` to stop the video from playing.
flet.app(target=main)
Note
Note
: You should know that this built to be used for basic small or normal usage, its can NOT be used for big production cases, if you do so it will be a RAM consuming and slow for biger videos..
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flet_ivid-1.1.tar.gz
.
File metadata
- Download URL: flet_ivid-1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13ccad2cd3fc9408850879d26f54becc72a18777de3f7a34e148550f35351517 |
|
MD5 | 2a9f1d031dac9d330b80d1db80e7868c |
|
BLAKE2b-256 | 192aa73d03d717a775d1131131c88344bc4fd69c9e97579794fd0d46dc756611 |
File details
Details for the file flet_ivid-1.1-py3-none-any.whl
.
File metadata
- Download URL: flet_ivid-1.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4d17b850087f4eef51c7fddc92ea08301520703a34c5062b87f0de2c43542d2 |
|
MD5 | 9e108f93a30fcf2b9dd27dc0a27ca671 |
|
BLAKE2b-256 | dd404655498afd4b17b3d2a790eb133794f68a770fd12e3ffb7ea1fe72e64db3 |