fast forward in jplayer

781 views
Skip to first unread message

evgenp...@gmail.com

unread,
Mar 10, 2010, 12:13:54 PM3/10/10
to jPlayer: the CSS styleable jQuery audio player plugin
Can you implement fast forward in jplayer?

Mark P

unread,
Mar 11, 2010, 1:43:55 AM3/11/10
to jPlayer: the CSS styleable jQuery audio player plugin
Hello,

You could use jPlayer to implement a fast forward, but jPlayer itself
does not have the functionality built in. Fast forward tends to work
best with video systems, since audio tend to end up sounding like
chipmunks.

You could try using an interval that jumps forward N seconds and then
plays for P time. So you get 100ms of sound with a 1 second jump to
make it play about 10 times faster... or play 500ms with 500ms jumps
for twice as fast. Some of the HTML5 solutions would hate this though
unless you let the entire mp3 file download first, since they allow
file seeking and the constant jumping to a new position would produce
horrid results. You could try using {nativeSupport:false} though since
the flash would deal with it in a more uniform manner cross-browser.

Best regards,
Mark P


On Mar 10, 5:13 pm, "evgenpion...@gmail.com" <evgenpion...@gmail.com>
wrote:

evgenp...@gmail.com

unread,
Mar 11, 2010, 3:17:40 AM3/11/10
to jPlayer: the CSS styleable jQuery audio player plugin
Thanks for response.

I try to play 2 time faster with 1 sec jump. Its really ugly and not
compare to fast forward in not web audio players.
Any other way to implement this?

evgenp...@gmail.com

unread,
Mar 11, 2010, 4:34:16 AM3/11/10
to jPlayer: the CSS styleable jQuery audio player plugin
can you implement this like function in swf of jplayer?
http://www.kennybellew.com/tutorial/ff_rev.htm

On 11 мар, 11:17, "evgenpion...@gmail.com" <evgenpion...@gmail.com>
wrote:

Mark P

unread,
Mar 11, 2010, 6:52:45 AM3/11/10
to jPlayer: the CSS styleable jQuery audio player plugin
Oh, I thought you wanted the sounds to play.

Since jPlayer works with Flash as a fallback, any solution would need
to work with both HTML5 and Flash. You could do what you want easily I
believe using jQuery and the information contained in jPlayer.

1) You click and hold the FF button.
2) jQuery event for FF mousedown.
2.1) get the current play time from jPlayer and set dummyTime
2.2) Increment the dummyTime a bit per second. (Some form of interval
to increment dummyTime.)
2.3) update the visual time using dummyTime (Similar to in
onProgressChange handler)
3) jQuery event for FF mouseup
3.1) make jPlayer play from the dummyTime when released.

I'll let you figure out the code.

I assume that you are not using progress bars, otherwise all they have
to do is click on the thing to jump to anywhere in the sound file.

Best regards,
Mark P.

On Mar 11, 9:34 am, "evgenpion...@gmail.com" <evgenpion...@gmail.com>
wrote:


> can you implement this like function in swf  of jplayer?http://www.kennybellew.com/tutorial/ff_rev.htm
>

> On 11 ÍÁÒ, 11:17, "evgenpion...@gmail.com" <evgenpion...@gmail.com>


> wrote:
>
> > Thanks for response.
>
> > I try to play 2 time faster with 1 sec jump. Its really ugly and not
> > compare to fast forward in not web audio players.
> > Any other way to implement this?
>

> > On 11 ÍÁÒ, 09:43, Mark P <mark.panaghis...@gmail.com> wrote:
>
> > > Hello,
>
> > > You could use jPlayer to implement a fast forward, but jPlayer itself
> > > does not have the functionality built in. Fast forward tends to work
> > > best with video systems, since audio tend to end up sounding like
> > > chipmunks.
>
> > > You could try using an interval that jumps forward N seconds and then
> > > plays for P time. So you get 100ms of sound with a 1 second jump to
> > > make it play about 10 times faster... or play 500ms with 500ms jumps
> > > for twice as fast. Some of the HTML5 solutions would hate this though
> > > unless you let the entire mp3 file download first, since they allow
> > > file seeking and the constant jumping to a new position would produce
> > > horrid results. You could try using {nativeSupport:false} though since
> > > the flash would deal with it in a more uniform manner cross-browser.
>
> > > Best regards,
> > > Mark P
>

> > > On Mar 10, 5:13špm, "evgenpion...@gmail.com" <evgenpion...@gmail.com>

Reply all
Reply to author
Forward
0 new messages