Friday, 15 August 2014

javascript - Is it possible to create a slideshow and add a screenshot to it, using the video and canvas element? -



javascript - Is it possible to create a slideshow and add a screenshot to it, using the video and canvas element? -

i have problems creating slideshow. i've used next tutorial create video element webcam acces, combined canvas element can take screenshots:

http://joshondesign.com/p/books/canvasdeepdive/chapter13.html

what i'm trying do, create slideshow contains few images , freshly taken screenshot. know if there's way, using javascript, accomplish this?

my code far:

var image1 = new image() image1.src = "images/slide1.png" var image2 = new image() image2.src = "images/slide2.png" var image3 = new image() image3.src = "the screenshot here" var step = 1; function slideit() { document.images.slide.src = eval("image"+step+".src"); if(step<3) step++; else step=1; settimeout("slideit()",2500); } slideit();

javascript

No comments:

Post a Comment