Skip to content

Instantly share code, notes, and snippets.

@Pitbi
Last active August 29, 2015 14:02
Show Gist options
  • Save Pitbi/808136ddbddb8d68817e to your computer and use it in GitHub Desktop.
Save Pitbi/808136ddbddb8d68817e to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Capture Photo</title>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript" charset="utf-8">
var pictureSource; // picture source
var destinationType; // sets the format of returned value
// Wait for device API libraries to load
//
document.addEventListener("deviceready",onDeviceReady,false);
// device APIs are available
//
function onDeviceReady() {
window.sebible.videosnapshot.snapshot(success, fail, {});
}
function success(result) {
alert(result);
}
function fail(error) {
alert(result);
}
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment