How to record video in Appcelerator Titanium and store in a specific location ?
I am using an Android 2.3.6 device.
This gist: https://gist.github.com/832488 does not seem to work as suggested / expected. It starts the video capture intent
var intent = Titanium.Android.createIntent({ action: 'android.media.action.VIDEO_CAPTURE' });
as an activityForResult
but the callback in
Titanium.Android.currentActivity.startActivityForResult(intent, function(e) { ... });
is never called, none of notifications in code appear and the video is stored in some default location.
The KitchenSink app does not have any video example[for Android], only a camera example code. It does have a record_video module for android video capture but it only manages to capture a picture. The line
mediaTypes: Titanium.Media.MEDIA_TYPE_VIDEO,
does not seem to be working
Any help is appreciated. Thanks.