Hi there, I am developing an mobile application for Android and iOS using appcelerator titanium alloy framework, code for the capture Video button is as follows: //+++++++++++++++++++++++++++++++++++++++++ $.captureVidBtn.addEventListener('click',function(e){ Ti.Media.showCamera({ success: function(event){ //// Ti.Media.saveToPhotoGallery(event.media); var sendit = Titanium.Network.createHTTPClient({ onerror:function(e){ //TI.API.debug(e.error); alert("There was an error durring connectiing with server..."); }, onload:function(e){ //TI.API.info("Received text: " + this.responseText); response = this.responseText; alert(response);
}
});
sendit.open("POST",WEB_SERVICE_URL);
var uploadParams = ({"mobile_form_action":"upload_video","media":event.media,});
sendit.send(uploadParams);
////
},
animated:true,
autoHide:true,
saveToPhotoGallery:true,
showControls:true,
allowEditing:true,
mediaTypes:[Ti.Media.MEDIA_TYPE_VIDEO,Ti.Media.MEDIA_TYPE_PHOTO],
videoQuality:Ti.Media.QUALITY_640x480,
}); }); //+++++++++++++++++++++++++++++++++++++++++ when I execute the application, the camera appears but it can take pictures only , the video mode is disabled :(,
Coding Environment: >> Macbook Pro, >> Titanium Studio 3.2.x >> Checking on Android Samsung Galaxy Young Device connected to mac machine
Please help
Thanks