How to increase the frequency (every 100ms) with which $.jPlayer.event.timeupdate occurs (~250ms default)

602 views
Skip to first unread message

Frog Pets

unread,
Mar 1, 2012, 3:00:47 PM3/1/12
to jPlayer: HTML5 Audio & Video for jQuery
I looked through the source and nothing stood out to me as a change I
could do quickly.

Is there any way I can make the $.jPlayer.event.timeupdate occur every
100ms?

The reason I ask is because my progress bar is going to take up the
entire width of a screen, and I'd like the progress to be fluid, it's
coming out in little chunks heh.

Frog Pets

unread,
Mar 25, 2012, 11:01:33 PM3/25/12
to jpl...@googlegroups.com
I'm still interested in a solution if anyone knows of anything.  Much appreciated.

Maboa

unread,
Mar 26, 2012, 6:39:12 AM3/26/12
to jpl...@googlegroups.com
I believe this is defined by the browser's implementation of the HTML5 media API not jPlayer.

Mark B

BluesM

unread,
Apr 30, 2012, 6:14:12 AM4/30/12
to jpl...@googlegroups.com
I'm still interested in a solution.

Have you find out ?

Jonathan2

unread,
Aug 29, 2012, 6:08:05 AM8/29/12
to jpl...@googlegroups.com
Sorry to bump this, but still very interested if anyone finds a solution.

Maboa is probably correct, but there's always a way round these things :)

I've been reading things like


"You will also see that the timeupdate event gets fired a lot and at somewhat random times. If you want to use this to sync the showing and hiding of parts of the document, then you’ll need to throttle it somehow. The easiest way to do this is to limit the number to full seconds using parseInt():"

Here, we want to do the opposite. Now, this is WAY beyond my javascript knowledge, but if timeupdate is coming at random times, could a little subroutine subtract the millisecond time from the last timeupdate and the current one to calculate number of ms elapsed, then interpolate that difference and update the progress bar based on this instead? 

In my own head, I know what I mean! Can anyone get their head round this?
Reply all
Reply to author
Forward
0 new messages