I am using an example of video recording using intent based on
Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); startActivityForResult(intent, REQUEST_VIDEO_CAPTURED);
For the duration I used: intent.putExtra("android.intent.extra.durationLimit", 5); It records 5 seconds and then stops automatically.
I used the example from the URL: http://android-er.blogspot.cz/2011/04/start-video-recording-using.html This example is interesting to me because it works on all my devices and is easy to implement.
Can I set the path to save the recorded video? Say, I just need the video to be saved in the specified file βmyrecordedvideo.mp4β to the specified folder and the video should be exactly 5 seconds. Can this be done with this intention?
source share