-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify when to begin loading video and get loaded percentage #168
Comments
@dvassilev I think you want to pass a callback function to the Additionally, take a look at |
@oyeanuj thanks for onProgress, didn't realise it also did amount loaded. As for onReady, that would just notify me when it's ready. I'd like to specifically say when the video should start loading (ie. on page load, on play etc.). I noticed |
@dvassilev The When playing files, however, You can set the <ReactPlayer
playing
url='file.mp4'
fileConfig={{ attributes: { preload: 'none' }}}
/> Beyond this, there is no way to control when a browser starts loading a video. Each browser (especially mobile browsers) will have different behaviours and media loading policies. More info on the |
Thank you @cookpete |
Is it possible to manually specify when the video beings loading? In addition, how can I get the loaded amount of the video?
Thanks,
Daniel
The text was updated successfully, but these errors were encountered: