meteor / mobile-packages

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

Video options on browser #95

Open rafaelcorreiapoli opened 8 years ago

rafaelcorreiapoli commented 8 years ago

Hi, I need to get high resolution images in my browser app. The implementation on this package of getUserMedia looks like this:

  // initiate request for webcam
  navigator.getUserMedia({
      video: true,
      audio: false
  }, success, failure);

This is always making my cam take pictures on low resolution... is this the correct way of telling getUserMedia to get high resolution images?

  // initiate request for webcam
  navigator.getUserMedia({
      video: mandatory:{
minWidth:1280
minHeight720,
},
      audio: false
  }, success, failure);

If it is, shouldn't this be an option to pass in 'options' when calling MeteorCamera.getPicture? the width and height you pass on options only tell the size of the canvas, not the resolution of image, am I right ?