android - How to capture video using Intent and set path of recorded and limit recording time -


i

  intended intent = an example of video recording using intent based on new intent I use (android.provider.MediaStore.ACTION_VIDEO_CAPTURE); StartActivityForResult (intent, REQUEST_VIDEO_CAPTURED);   

I have used the time limit: intent.putExtra ("android.intent.extra.durationLimit", 5); It records 5 seconds and then automatically closes.

I used an example from the URL: This example is interesting to me because it works on all my devices and it is easy to implement.

Is it possible to set the path to save the record video? Let me assume that I need a video to save "myrecordedvideo.mp4" to the file specified in the specified file and actually requires 5 seconds of video. Is it possible to make easy way with this effect?

Set deadlines and set paths to save the video

  Intent LavioInantent = New Intent (MediaStore. Action_Vedacular); TakeVideoIntent.putExtra (MediaStore.EXTRA_DURATION_LIMIT, 30); TakeVideoIntent.putExtra (MediaStore.EXTRA_OUTPUT, Environmental.getExternalStorageDirectory (). GetPath () + "videocapture_example.mp4"); StartActivityForResult (Lediosintent, ACTION_TAKE_VIDEO);    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -