A package tool that provide basic video player and easy clip for flet.
Project description
flet_ivid_hks
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_hks --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_hks 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)
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flet_ivid_hks-1.3.tar.gz
(9.8 kB
view details)
File details
Details for the file flet_ivid_hks-1.3.tar.gz.
File metadata
- Download URL: flet_ivid_hks-1.3.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af4ff483b4cee507b485c571bb876e187b34861be44d1cf0ba7e145eced135cd
|
|
| MD5 |
1e99bf588aac3ba0a6228a6baaaaf8f4
|
|
| BLAKE2b-256 |
b5dc22588c5b1fc2814f36f850df98b1d63bab313b741a4f852865606d6807ea
|