-
-
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
When playing is originally set to false, onProgress does not return played property #79
Comments
Yes, I've just run into this issue as well. When playing={true}, the argument passed to the onProgress callback looks like:
When playing={false}:
|
This was a deliberate decision so that Perhaps
The |
Thanks for your response, @cookpete. That makes sense. I ended up doing as you said and updating the state with functions listening to |
I agree. To be honest it seems cleaner and less confusing to just include both values all the time, so I'll make the changes, update the docs and publish a new version. |
Should be fixed in |
I'm using the player with controls set to
true
and when I setplaying
tofalse
, I do not see theplayed
property in the object theonProgress
function is returning. It looks to me that the following clause is not working as expected because_this.props.playing
is staying asfalse
even after I press play.The text was updated successfully, but these errors were encountered: