Hi,
I have an application where I capture video, for now purely testing on iOS 7, iPad Mini 1st gen. I’ve been on the latests daily builds, and it seems that in my project the listener for videoCapture doesn’t get called. I’m just doing a native.showAlert there.
So… I tested the sample code in the API docs, and if I capture a few seconds - black screen (on the device).
This is the code:
local onVideoComplete = function(event) print("video session ended") end local function onComplete(event) if event.completed then media.playVideo(event.url, media.remoteSource, true, onVideoComplete) print(event.duration) print(event.fileSize) end end if media.hasSource( media.Camera ) then media.captureVideo( { listener = onComplete } ) else native.showAlert( "Corona", "This device does not have a camera.", { "OK" } ) end
I’ve attached a sample project as well. Can anyone verify, or tell me the Magic Incantation to make this work?
Cheers, Maarten