Skip to main content

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


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-1.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

flet_ivid-1.2-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file flet_ivid-1.2.tar.gz.

File metadata

  • Download URL: flet_ivid-1.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for flet_ivid-1.2.tar.gz
Algorithm Hash digest
SHA256 07b6f771f3cbac63b9550a0f259945724dfac5ab2e9732ff1623720ab4f82311
MD5 79df591ba2c34a6bbf087676f96423b1
BLAKE2b-256 d1de47ca8cf6b79cb14246b71847e85ff102ae273e81b909ced9d98c8a7c2937

See more details on using hashes here.

File details

Details for the file flet_ivid-1.2-py3-none-any.whl.

File metadata

  • Download URL: flet_ivid-1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for flet_ivid-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c00f9074984960efbdd1b81d1b5665b3279b18c1ec409866abbaa53d09a8fd1
MD5 005cf26ebfc788900ea8a256c00bb214
BLAKE2b-256 54aebcec264cd312347b652fe13887d303f9a1ae698f4853f5a2f22ec5400492

See more details on using hashes here.

Supported by

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