Skip to content

seidlr/ipyreactplayer

Repository files navigation

Ipyreactplayer

Version Open In Colab

Use Ipyreactplayer if you want to be able to control a videoplayer in a jupyter notebook, lab, voila or solara. It is a simple wrapper using Ipyreact with react-player Similar to streamlit-player or dash-player in nature.

Works with:

  • Google Colab Open In Colab
  • Jupyter notebook
  • Jupyter lab
  • Voila (version>0.5)
  • Solara see the example under solara.

Usage

With ipywidgets

from ipyreactplayer import VideoPlayer

url = 'https://vimeo.com/663967148/fb7c372be3?share=copy'
player = VideoPlayer(url=url)
display(player)

# seek to position
player.seek(1024.0)

# play/pause
player.play_pause()

# mute/unmute
player.muted = True

# show/hide controls
player.controls = True

# change source
player.url = 'https://vimeo.com/755209790/8e428d0213?share=copy'

With voila

voila example.ipynb

With Solara

From notebook

solara run solara.ipynb

As app

cd solara/pages
solara run .

Installation

$ pip install ipyreactplayer

About

An interactive videoplayer as Ipywidget.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published