Skip to main content

A package tool that provide basic video player 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.1.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file flet_ivid_hks-1.1.tar.gz.

File metadata

  • Download URL: flet_ivid_hks-1.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for flet_ivid_hks-1.1.tar.gz
Algorithm Hash digest
SHA256 b0fd8f065b2a23dcfebe78e856077d284d7ce0cc1081643e86702eabc11f0321
MD5 30eadaa078952023598021d6e592ec09
BLAKE2b-256 8ccb4335a95d652468d21756ff83269365230ecd431a35e92a760ed37c1ca80f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page