You may need to use the camera in several applications to take photos/videos. In corona SDK, you can launch device camera using the following code:
local onComplete = function(event)
local photo = event.target
print( "photo w,h = " .. photo.width .. "," .. photo.height )
end
media.show( media.Camera, onComplete )
local onComplete = function(event)
local photo = event.target
print( "photo w,h = " .. photo.width .. "," .. photo.height )
end
media.show( media.Camera, onComplete )
No comments:
Post a Comment