I want to develop HTML 5 based slideshow with images and videos on full screen. this will be some sort of screensaver on one of our kiosks when there is no user activity for a couple of minutes. we already have image based slideshow on full-screen implemented so there is no problem with this, but now we want to add Video auto-playback functionality as well so for example lets say this is the order of screensaver content
- image.jpeg
- image2.jpeg
- videoclip.mp4
- image3.jpeg
- someothervide.mp4
after jquery script runs we want to run through those files continuously and either show image for few seconds or auto-start video and move to the next slide when playing video is finished
can someone suggest how to do this and if there are any already implemented plugins for jQuery can you provide with links?
Actually this is pretty easy to solve. Find all explanations within the comments of the JavaScript. Wrap that all in a closure like
$(document).ready(function () {});and you’re ready to go.HTML
CSS
JavaScript – Variables
JavaScript – Function
JavaScript – Finally: initial function call
Demo
Demo on jsfiddle.net
A note on the demo: The demo runs in Safari only (maybe in IE9 too) because of the video format provided (video/quicktime).