Skip to content
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

Missing onProgress #57

Closed
aftabaig opened this issue Aug 18, 2020 · 3 comments
Closed

Missing onProgress #57

aftabaig opened this issue Aug 18, 2020 · 3 comments

Comments

@aftabaig
Copy link

I want to setup my own seekbar and need an onProgress callback. Is this possible?

@LonelyCpp
Copy link
Owner

LonelyCpp commented Aug 18, 2020

Hey you'll have to use getCurrentTime with a setTimeout when the player becomes ready.

Here's a sample implementation from an earlier thread - #9 (comment)

Just make sure you start the interval after player is ready, and clear it when the player is unmounted. You can give any ms delay to tune the accuracy.

@aftabaig
Copy link
Author

Thanks for your reply @LonelyCpp
That's what I did and it worked!

@alondahari
Copy link

@LonelyCpp this is a good workaround, however an onProgress callback implementation would be very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants