且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Android手机上使用phonegap显示相机

更新时间:2022-10-26 16:08:30

Both your capturePhoto() and capturePhotoEdit() functions need to have the destinationType updated.

navigator.camera.getPicture(
    onPhotoDataSuccess,
    onFail,
    {
        quality: 50,
        destinationType.DATA_URL
    }
);

should be like this,

navigator.camera.getPicture(
    onPhotoDataSuccess,
    onFail,
    {
        quality: 50,
        destinationType: destinationType.DATA_URL
    }
);