I would like to have an app that automatically records 2 seconds of video.
Titanium.Media.showCamera only shows the camera but then I have to push the button, in order to record the video. Do you have any idea how to do it?
If you want to Record Video for 2 seconds then you can set videoMaximumDuration which is only available in IOS see this link for reference and for automatically play you can set fireEvent when you go to that window or when you create view from where you display Video Player or you can start video when you create object of Video Player.Best luck
Sorry but I didn't quite understand the part of recording automatically. Video player is only useful when you want to watch your video, isn't it?I just want that as soon as the camera is shown, it starts to record by its own!
video recording automatically is impossible (my professor couldn't do it either) therefore I did it with pictures instead, since there is the function takePicture()!
Hi Cristina, i have not tested it yet, but i would suggest you to get the event of record button and start it automatically, as per your logic.
HI do it like this, `To suppress the default controls, set showControls and autohide to false.
set the showControls option to false, now you must control the camera explicitly, using the takePicture and hideCamera methods.
and set the
mediaTypes property to `MEDIA_TYPE_VIDEO'
Think you can help? Login to answer this question!