According to ref. http://developer.android.com/reference/android/media/MediaRecorder.OutputFormat.html I am wondering, what is MediaRecorder.OutputFormat.DEFAULT
?
Is it one of the rest value like THREE_GPP
or other ?
How can I figure it out ?
The MediaRecorder API enables you to record audio and video from a web app. It's available now in Firefox and in Chrome for Android and desktop.
If you want to do your analysis while recording is still in progress, you need to use AudioRecord , as MediaRecorder automatically records into a file. AudioRecord has the disadvantage, that after calling startRecording() you need to poll the data yourself from the AudioRecord instance.
DEFAULT will be one of the other formats listed. It is simply the default output format for that device.
Note that this format could be device specific. See this page for more details on supported Android video formats.
If you wanted to verify this, you could write a simple app that creates a video using DEFAULT and saves it to SD, then check the format.
Cheers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With