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.
Is there a way to automatically disable or hide the json that shows below each embedded video? I.e. the dictionary that shows the "name" and "data" elements?
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.
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.
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.
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?
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.
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?
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?