Get seek bar time

239 views
Skip to first unread message

Anthony Gladdish

unread,
Jun 15, 2011, 11:35:07 AM6/15/11
to jPlayer: HTML5 Audio & Video for jQuery
Hi,

Using jPlayer, I would like to move the play head on the progress/seek
bar, and on mouseup or click, I would like to get the time in seconds
associated with the new play head's position ( this is so I can jump
to some associated transcript text associated with the playing
audio ).

Could anyone point me to the relevant code?
I've presuming something along the lines of:

playerEn.bind($.jPlayer.event.progress, function(event) {
t = event.jPlayer.status.currentTime;
alert('t: '+t);
});

Thanks,
Anthony

Mark Panaghiston

unread,
Jun 17, 2011, 6:51:51 AM6/17/11
to jpl...@googlegroups.com
The $.jPlayer.event.timeupdate event will fire repeatedly when the media is playing. I suggest that you use that event. It also fires if the media is paused and the currentTime changes through clicks on the progress bar.
Reply all
Reply to author
Forward
0 new messages