ffissore / presentz.js

A js library to show synchronized video and slides presentations, powering presentz.org
http://presentz.org/
GNU Lesser General Public License v3.0
143 stars 20 forks source link

Detect when the video has finished #20

Closed lmclaney closed 11 years ago

lmclaney commented 11 years ago

Not really an issue, but is there a way to detect when the video has finished playing or the last slide has been reached?

ffissore commented 11 years ago

Yes, take a look here https://github.com/ffissore/presentz.js/blob/master/src/Presentz.coffee#L45 On your presentz instance, you can call mypresentz.on("finish", function() {...}); This will be called each time a video finishes playing

lmclaney commented 11 years ago

Great, I completely missed that. Thanks for the quick reply!

On a separate note, what versions of IE have you tested in? Before I use the library I was wondering if it would work in IE7 - we get a lot of users still using this browser.

ffissore commented 11 years ago

I'm sorry but I've never tested presentz.js on IE: I've seen it running smoothly on it, though I don't know which version it was

lmclaney commented 11 years ago

Thanks, I'm sure it will work fine on IE9+ but maybe IE7 or IE8 will have issues - they always do. I'll just have to test myself and if there are any errors which I can fix I will contribute them.

ffissore commented 11 years ago

Thank you in advance :)