callback/phonegap — Issue #7: camera.getPicture doesn't work with video on Windows Phone.
Author: rmnl
Created: 2012-01-08 22:10:21+00:00
State: open

I've been trying to get a Video from the photo library on Windows Phone, but I don't get it to work. Getting a picture works fine, but it seems that the mediaType option is being ignored.

```javascript
navigator.camera.getPicture(onSuccess, onFail, {
sourceType: 0,
destinationType: 1,
MediaType: 1,
quality: 50
});
```

If I use the above code, the photo library opens, but I can only select pictures.

The [docs](http://docs.phonegap.com/en/1.3.0/phonegap_camera_camera.md.html) suggest that `MediaType` should start with a capital, unlike the other options, but I've tried without (`mediaType`) as well.

I've also used both an integer as value as `Camera.MediaType.VIDEO` for all options.

According to the [docs](http://docs.phonegap.com/en/1.3.0/phonegap_camera_camera.md.html) everything of this method should work on Windows Phone except for the `allowEdit` parameter.