Reputation: 6057
I windows UWP development, I can choose what format I want the camera to record the video in (i.e. mp4) like:
CameraCaptureUI camera = new CameraCaptureUI();
camera.VideoSettings.Format = CameraCaptureUIVideoFormat.Mp4;
I was reading here, how to (simply) take videos in Android with and Intent. What is the default format when a video is taken this way? Is there a way I can tell it to record the video in an mp4 as opposed to something else?
Upvotes: 0
Views: 328
Reputation: 1007534
What is the default format when a video is taken this way?
Whatever the camera app wants, out of the multitude of possible camera apps that might process your request.
Remember: when you use startActivity()
with an implicit Intent
like ACTION_VIDEO_CAPTURE
, usually you are starting up an activity in somebody else's app. Sometimes, the Intent
is something only the OS will handle, but most times anyone can implement an activity for it. There are hundreds of pre-installed camera apps across the thousands of Android device models, and there are many more camera apps available on the Play Store that might advertise support for your Intent
.
Is there a way I can tell it to record the video in an mp4 as opposed to something else?
Not through any documented and supported protocol. There might be some third-party camera apps that offer additional extras where you can provide that information, but few apps will honor them.
Upvotes: 1