Last active
August 29, 2015 14:02
-
-
Save Pitbi/808136ddbddb8d68817e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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