Hi Mark,
On Jun 20, 11:17 am, Mark Panaghiston <
mark.panaghis...@gmail.com>
wrote:
I'm using FF3 with Flash.
Using the following code appears to work, clicking on the seek bar
jumps to the correct 20 second portion of transcript, but *only* if
the alert() box here is displayed!? If I comment the alert() box out
it does not work as desired ( i.e. it jumps forward in 20 second
intervals) :
$('div.jp-seek-bar').click(function(){
alert('jp-seek-bar: '+currentTime+', currentPercentRelative:
'+currentPercentRelative);
var counting = 1;
var count = 0;
while ( counting ) {
if ( count > currentTime ) {
counting = 0;
} else {
count = count + 20;
}
}
playerEn.jPlayer("play", count);
$('div.interview_ortho').scrollTo('span[m='+count+']');
$('#transcript span').removeClass('highlightTranscript');
$('#transcript span[m='+count+']').addClass('highlightTranscript');
return false;
});
I’m using the timeupdate event to save time information, i.e. :
playerEn.bind($.jPlayer.event.timeupdate, function(event) {
…
currentTime = event.jPlayer.status.currentTime;
…
});
Is this a bug or am I missing something obvious?
Note: the audio file downloads instantly on my network so I’m not
relying on seeked/seeking events.
Thanks for your help,
Anthony