Seek event (Projekktor Core)
Hi
I'm using projekktor version V1.0.19 r61 and i noticed a strange issue using seek event.
First of all this events pass an object value and not a double as written in documentation.
Moreover after the first time i catch this event, the seek events is raised each time i move cursor over the time bar not only when i click it.
Sometimes this events is also raised more than one time.
I'm using this event to avoid a user to freely skipping some video parts.
Thanks in advance.
Keep up the good work.
Below a snippte of my code
JS:
$(document).ready(function () {
player = projekktor('#player_a', {
playerFlashMP4: 'js/jarisplayer.swf',
platforms: ['flash','browser', 'ios', 'native'],
enableFullscreen: false
}, function (player) {
// add listeners
player.addListener('time', timeListener);
player.addListener('seek', seekListener);
player.addListener('done', doneListener);
});
});
function timeListener(value) {
$("#timeDebug").text("Current time is: " + convertTime(value) + " [" + value + "]");
displayAdvertisement(value);
storeViewInfo(value);
}
function seekListener(value) {
alert("seekListener " + typeof value);
if (value > viewTimeLimit) {
player.setPlayhead(viewTimeLimit);
}
}
function doneListener() {
storeEndInfo();
}
HTML:
<video id="player_a" class="projekktor" poster="http://www.jplayer.org/video/poster/Finding_Nemo_Teaser_640x352.png"
width="640" height="352" controls>
<source src="http://www.jplayer.org/video/m4v/Finding_Nemo_Teaser.m4v" type="video/mp4" />
<source src="http://www.jplayer.org/video/ogv/Finding_Nemo_Teaser.ogv" type="video/ogg" />
<source src="http://www.jplayer.org/video/webm/Finding_Nemo_Teaser.webm" type="video/mp4" />
</video>
Seek event
Greetings,
thank you very much for your feedback. let´s see what we got here:
First of all this events pass an object value and not a double as written in documentation.
fixed that for the upcoming update.
Moreover after the first time i catch this event, the seek events is raised each time i move cursor over the time bar not only when i click it.
Sometimes this events is also raised more than one time.
I suppose that you noticed both effects while using the controlbar´s scrubber and not while using an API call. I can confirm some strange effects caused by the controlbar-plugin. Please stay tuned.
- sascha
---
Help keeping free Projekktor support alive. Consider to buy supporter license: http://shop.projekktorxl.com/shop/supporter-license/
