meteor / mobile-packages

Meteor packages that provide functionality on mobile and desktop via Cordova plugins.
Other
339 stars 153 forks source link

provide a way to get access to photo content and to call closeAndCall… #107

Closed Rebolon closed 3 years ago

Rebolon commented 8 years ago

…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

Rebolon commented 8 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]);
}

}

CLAassistant commented 5 years ago

CLA assistant check
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.

StorytellerCZ commented 3 years ago

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.