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

Updates only every second #53

Closed
Martinspire opened this issue Aug 30, 2014 · 1 comment
Closed

Updates only every second #53

Martinspire opened this issue Aug 30, 2014 · 1 comment

Comments

@Martinspire
Copy link

Hi all,

I'm trying to use this player to play some stuff and its mostly short material. Now i'm using an progress bar to show playback position like so:

 ng-style="{width: ((round(player.currentTime) / round(player.duration)) * 100) + '%' }"

This seems to be showing the correct progress but the thing is: player.currentTime and player.duration are only updated once every second. Which is not really what i wanted as it gives me major stuttering of playback progress.

Is there any way to speed it up a bit or am i doing something (else) wrong?
Btw, i'm using the ng-style so it also works properly in IE11

@colthreepv
Copy link
Owner

You're not doing anything wrong, it's a "feature" that is on discussion at the moment: #50 some find it useful, some not. (please post there!)

If you wish to disable it, i've just published the 0.5.8 so you can configure throttle (and disable it)

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

2 participants