file:///android_asset/www/js/cordova-media-upload.js: Line 39 : Uncaught (in promise) SyntaxError: Unexpected token u in JSON at position 0
chromium: [INFO:CONSOLE(39)] "Uncaught (in promise) SyntaxError: Unexpected token u in JSON at position 0", source: file:///android_asset/www/js/cordova-media-upload.js (39)
const cmu = new CordovaMediaUpload({
"imageWidth": 640,
"imageHeight": 480,
"imageQuality": 50,
"videoWidth": 640,
"videoHeight": 480,
"videoBitRate": 1000000
});
function getMedia(callback){
cmu.getVideo()
.then(data => {
showUserAlert(data);
callback();
})
.catch(error => {
if(error) {
navigator.notification.alert(_('album.failure'));
showUserAlert(error); // shows message box on page
throw error;
}
})
}
const cmu = new CordovaMediaUpload({
imageWidth: 640,
imageHeight": 480,
imageQuality: 50,
videoWidth: 640,
videoHeight: 480,
videoBitRate: 1000000
});
[…]
But I could also be wrong, I haven't quite figured out your code yet.
I can't get past the error.
Please help.