pip install streamlit-player
from streamlit_player import st_player
# Embed a youtube video
st_player("https://youtu.be/CmSKVW1v0xM")
# Embed a music from SoundCloud
st_player("https://soundcloud.com/imaginedragons/demons")
A streamlit component to embed video and music players from various websites.
Home Page: https://share.streamlit.io/okld/streamlit-gallery/main?p=react-player
License: MIT License
Since they use the same player as YouTube, it should be fairly easy to include support for this by adding the link recognition for Google Driver files.
Thanks for the great component.
Would it be possible to have the possibility to set the current video position/time from code?
Just like you can now control 'pause', 'start' etc, that I could control the current position of the video?
I'm asking because in my use-case I have another component from where I want to select the position, and I want to feed that into the video player to show the correct part of the video.
Thanks!,
Jelle
Showing pydantic.errors.PydanticImportError for the demo view on Streamlit
When I pass a path to a local mp4 file, Firefox shows a gray box with "No video with supported format and MIME type found." Chrome loads the player and shows controls, but the video isn't loaded.
I suspect that it's something to do with where react-player looks for videos. This Stack Overflow post may be relevant: react-player how to play local video.
I'm going to look into it some more later today and will update if I find anything. However I'm not very familiar with JS or React, so my progress might be limited.
I was checking the documentation for React Player and it supports multiple URLs as input. When I try to pass multiple URLs as list of strings or even as a set of strings I keep getting errors. How do you suggest one can pass multiple URLs?
Add also Instagram images/videos to be embedded by this streamlit component.
Currently the height is set by default to some fixed value, and there is a height parameter, but I'm wondering if it's possible to have it set automatically like the st.video function?
While st.video works for local videos, it is very barebones in terms of features such as getting playback time and video parameters. Adding local video support for this would be great to utilize these features.
Hi, thanks for the great library.
I want to add some call back functions when the video is played or paused but I can't figure out how to do it. There are events supported but they just seem to take string inputs. Can you please share some code samples to add callback functions to video players?
When the player captures an even, the UI flashes as the response is returned. This may be a streamlit quirk that we can't fix, but I thought I would raise it here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.