Skip to content

An iOS (and Android) camera roll access template project for Defold

License

Notifications You must be signed in to change notification settings

Brun0oO/defold-camera-roll

Repository files navigation

camera roll

Acces to the Camera Roll from a Defold application

Overview

This project is much more a Proof Of Concept than a direct-to-use template. It allows to use in a Defold application a photo from the smartphone as a texture (validated on iOS device, this should also work on Android device subject to special permissions to be granted to access local photos...).
To do this, it uses a web view with a dedicated local html page and some magic stuff to communicate between the Defold and Webview universes....

Note:
The html page contains a picture resizer function that can be set from the defold application (see the init lua function). This allows to reduce the length of base64 string used to exchange the picture between the webview and the defold application host...

See the main/screen.gui_script file to get an idea.

Step by step in pictures

step 1 step 2 step 3 step 4 step 5 step 6

Contributing

See CONTRIBUTE.md for details about how to contribute to this project.

About

An iOS (and Android) camera roll access template project for Defold

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published