Take photo with your Webcam using Jquery
Tested on New Edge, Google Chrome, Vivaldi, and Mozilla Firefox.
Not Working on Old Edge Browser
OPTION | DEFAULT |
---|---|
height | 480 |
width | 640 |
sound | true |
soundsource | { snap : 'snap.mp3' , trash: 'trash.mp3', save: 'save.mp3'} |
flasheffect | true |
imagetype | png (png,jpg,webp,gif) |
outputdir | null |
filename | 'images' |
services | save.php |
params | null for extra params |
_token | null for laravel |
<head>
<link rel="stylesheet" href="jquery.camshoot.css">
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jquery.camshoot.js"></script>
<script type="text/javascript">
$(function(){
$("#cameraContainer").camera({
height:600,
width:400,
sound:true,
imagetype: 'jpg',
filename: 'testing',
flasheffect: true
});
});
</script>
</head>
<body>
<div id="cameraContainer"></div>
</body>
This project is licensed under the MIT license. Copyright © 2018 Abu Dzakiyyah