Closed Rebolon closed 3 years ago
Maybe that would be better to remove the listener on "change #videoFallback" because it's up to the developper to add what he wants. Maybe he wants to do some image manipulation (what i'm doing on my apps per exemple).
Here is the code to be removed if you wants :
"change #videofallback": function(ev, tpl) { var files = ev.currentTarget.files; // FileList if(!files.length){ error.set("Please, click on browse button to select a file."); return; }
var reader = new FileReader();
reader.addEventListener("load", function () {
MeteorCamera.getPhoto().set(reader.result);
}, false);
if (files[0]) {
reader.readAsDataURL(files[0]);
}
}
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
This PR is outdated and requires a significant update. As such I'm closing this for now, but feel free to update and re-open as we are now actively maintaining this repo.
…back function to allow the template remove from DOM
It also add a way to specify options using Meteor.settings.public.Meteor.Camera : { camera: {type: "front"/"back", width: 640, height: 480, quality: 80, viewFinder: {width: 320, height: 240}}
fix #106