-
-
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
onProgress stops getting called if playing is set to false #94
Comments
It's true that If you are attempting to wait until the browser can play the entire media, there is a |
Thanks, that's more or less what I figured was going on. |
Hi @cookpete would you be able to make that canplaythrough optional somehow? (ie we can choose to listen for it or not.... in fact all of those events really). That event was absolutely critical for a (non-react) video I did for a banner, in order to load enough for the video to (attempt to) play through without buffering. Tested on throttled connection in chrome and it worked great. So having access to it would be very useful. regards |
@jmp909 This is actually already possible by passing <ReactPlayer
url={file.mp3}
playing
fileConfig={{
attributes: {
onCanPlayThrough: () => console.log('Now I can play it through')
}
}}
/> In fact, any other media event is supported in this way, with the |
@cookpete Is there any way to track how much the video has loaded while it is paused? |
@belohlavek The It may even be worth splitting |
@cookpete |
Hey @priyathamkat yeah there seems to be a bug in the most recent version which I will look into. Good spot. It doesn't need to be |
Fixes cookpete/react-player#94 Also serves as a better fix for cookpete/react-player#51
Fixes cookpete/react-player#94 Also serves as a better fix for cookpete/react-player#51
Fixes cookpete/react-player#94 Also serves as a better fix for cookpete/react-player#51
Fixes cookpete/react-player#94 Also serves as a better fix for cookpete/react-player#51
Fixes cookpete/react-player#94 Also serves as a better fix for cookpete/react-player#51
Fixes cookpete/react-player#94 Also serves as a better fix for cookpete/react-player#51
I want to start playing the video (a local .mp4) when the loading state reaches a certain level, let's say 0.5.
However, when the playing parameter is set to false, onProgress only get's called initially, and then stops getting called. Am I misunderstanding the concept of onProgress? Shouldn't the video continue being loaded, even if the media isn't playing? I can see in the demo that when the video is paused, loading doesn't take place. Is there any way to achieve what I want then, or is it a browser specific thing?
The text was updated successfully, but these errors were encountered: