Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flet-ivid

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flet-ivid

A package tool that provide basic video player for flet.

  • 1.2
  • PyPI
  • Socket score

Maintainers
1

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..

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc