Help - Saving captured video?

Hello! I have been trying to figure this out but nothing I have tried is working…

local function onVideoComplete(e) if (e.completed) then local path=system.pathForFile("capturedvideo.MOV", system.TemporaryDirectory) -- returns path -- media.save("capturedvideo.MOV",e.url) -- media.save("capturedvideo.MOV",media.RemoteSource) -- media.save("capturedvideo.MOV",system.TemporaryDirectory) -- media.save("capturedvideo.MOV",system.ResourceDirectory) -- media.save("capturedvideo.MOV",path) -- media.save(e.url,media.RemoteSource) -- media.save(e.url,system.TemporaryDirectory) end end media.captureVideo({listener=onVideoComplete,preferredQuality="medium"})

is there something I am missing?

Please, could someone on the staff enlighten us on saving video?

Thanks,

Aidan Wolf

Hey aidan3dbit8, please check out my latest topic for the solution!
http://forums.coronalabs.com/topic/43203-solved-saving-captured-video/

Please, could someone on the staff enlighten us on saving video?

Thanks,

Aidan Wolf

Hey aidan3dbit8, please check out my latest topic for the solution!
http://forums.coronalabs.com/topic/43203-solved-saving-captured-video/

hi eja,

figured out how to playback video from a button based on your script, but I’m wondering what the use of this would be as opposed to just using the iPhone’s camera which at least saves to Camera Roll where it can be uploaded to the web or backed up to the cloud?

hi eja,

figured out how to playback video from a button based on your script, but I’m wondering what the use of this would be as opposed to just using the iPhone’s camera which at least saves to Camera Roll where it can be uploaded to the web or backed up to the cloud?