Repeat Screenshot

Im trying to make an app that takes thousands of screenshots and combines them into one video file. I havent got around to the combining them into movie bit yet, because im stuck on how to constantly take screenshots until the button is clicked to stop it.

This is what I have so far:

local background = display.newImage('background.png')   local captureButton = display.newImage('captureBtn.png')   captureButton:setReferencePoint(display.CenterReferencePoint)   captureButton.x = display.contentWidth \* 0.5   captureButton.y = display.contentHeight \* 0.5 local screenshot = display.captureScreen(true) function captureButton:tap(e)  local repeattask = timers.Repeat(function()          timer.performWithDelay(2, screemshot, 10)     end, 150) end  media.show(media.PhotoLibrary)   

It would be a good idea for you to make sure you have a viable method of combining single images into a video file.  If that’s the crux of your application, then all your other work will be useless if there’s no way to make the video file.

The reason I bring it up is that it’s certainly not a built-in feature of Corona to combine images into a video file.  At best, you’d have to create or implement your own extension using Corona Enterprise, or perhaps upload images to a server and have the ideo creation code run there.  Either way, it’s not a trivial app.  I see that you’re fairly new to the forums, so if this is your first app, I’d suggest something more manageable.

  • Andrew

Plus you spelled screenshot wrong on this line:

timer.performWithDelay(2, screemshot, 10)

Thanks guys, this is my fifth app, I might try to make an extension. The idea of my app is to make a screen recorder, but all a video is, is millions of pictures combined into a video.

It would be a good idea for you to make sure you have a viable method of combining single images into a video file.  If that’s the crux of your application, then all your other work will be useless if there’s no way to make the video file.

The reason I bring it up is that it’s certainly not a built-in feature of Corona to combine images into a video file.  At best, you’d have to create or implement your own extension using Corona Enterprise, or perhaps upload images to a server and have the ideo creation code run there.  Either way, it’s not a trivial app.  I see that you’re fairly new to the forums, so if this is your first app, I’d suggest something more manageable.

  • Andrew

Plus you spelled screenshot wrong on this line:

timer.performWithDelay(2, screemshot, 10)

Thanks guys, this is my fifth app, I might try to make an extension. The idea of my app is to make a screen recorder, but all a video is, is millions of pictures combined into a video.