i want to attach web cam to a div element.the way i used to do in jquery is like below,How can i attach web cam to a div using angularjs
<script type="text/javascript">
$("#Camera").webcam({
width: 320,
height: 240,
mode: "save",
swffile: "@Url.Content("~/Scripts/jscam.swf")",
onTick: function () { },
onSave: function () {
UploadPic();
},
onCapture: function () {
webcam.save("@Url.Content("~/Photo/Capture")/");
},
debug: function () { },
onLoad: function () { }
});
</script>
}
i know i have to create a directive for this. doubt :weather i have to convert all jquery.webcam.js file need to change to directive or any other way is there to do it.
i tried with <ng-Camera></ng-Camera>
available on github but it is not supporting in IE
if any one have any help-link to do webcam Capture image accross all the browser pls update here