|
api.getPicture({
sourceType: 'camera',
mediaValue: 'video',
destinationType: 'url',
allowEdit: true,
quality: 50,
targetWidth: 100,
targetHeight: 100,
saveToPhotoAlbum: false,
videoQuality:'high'
}, function (ret, err) {
if (ret) {
api.alert({
msg: JSON.stringify(ret)
});
} else {
api.alert({
msg: JSON.stringify(err)
});
}
}); |
|