aFarkas / jMediaelement

jquery multimedia framework
GNU General Public License v2.0
150 stars 23 forks source link

'timeline-slider' does not work with jQ 1.7.1 #22

Closed elz64 closed 12 years ago

elz64 commented 12 years ago

Hi, As the handle 'timeline-slider' are ok with jQ 1.6.4, it does not move anymore during playback with jQ1.7.1

aFarkas commented 12 years ago

Hi,

thx for your bug report. I know this bug and I know the solution. I try push the fix tomorrow

cheers alex

elz64 commented 12 years ago

Hi, thank you

I'm looking for a solution to manage the following, and I'm not sur the API is powerful enough..can you help (I post on jQuery forum and Stakoverflow..but nothing happens).

I'm looking for a way to synchronize manuals moves of those .timeline-slider .ui-slider-handle (forward/reverse playing position)

(2 media playing simultaneously 1 video + 1 audio for audio description. If the playing can be synchronize, example for play (same idea for pause - Copy code

  1. $(document).bind('play',function(e){ // $('video, audio').not(e.target).pause(); $('video, audio').not(e.target).play(); });

When manipulating one of the handles .ui-slider-handle, it gets the ui-state-active too. So it should be possible to know wich one (audio or video) is touched and leaved and then managing the other one to reflect the time slide (forcing its position using ".currentTime(myvalue)".

I made many tries like this one but it's processed all time, not only when moving the handles, so it's a performance issue and I'm sure there's a better way...

$('audio, video').bind('timechange', function(e, data){ newTime = data.time; dnewTime = newTime - oldTime;// delta T (sec) oldTime = newTime; if (( dnewTime> 1) (dnewTime< -1)) // handler has been moved widely delta time is big { $('video, audio').not(e.target).currentTime(newTime); }; $('#jmeLog').html('newTime: '+ newTime + ' dT: ' + dnewTime ); });

Thank you Eric

Le 21/03/2012 23:51, Alexander Farkas a écrit :

Hi,

thx for your bug report. I know this bug and I know the solution. I try push the fix tomorrow

cheers alex


Reply to this email directly or view it on GitHub: https://github.com/aFarkas/jMediaelement/issues/22#issuecomment-4629016

aFarkas commented 12 years ago

Your bug should be fixed with version 1.3.5final.

With your other issue. I'm currently not 100% sure, but do you need something like an audiodescription then you should look into Issue #12).

The following gist might help you https://gist.github.com/1373402.