Type Boolean Event completion Revision 2017.3060 Keywords completion, completed
Boolean property of true
if the user has successfully completed a modal interaction such as using the camera.
-- Video completion listener local onVideoComplete = function( event ) print( "video session ended" ) end -- Capture completion listener 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