Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is MediaRecorder.OutputFormat.DEFAULT?

Tags:

android

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 ?

like image 553
hsz Avatar asked Feb 28 '11 16:02

hsz


People also ask

What is MediaRecorder?

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.

What is the difference between audio recorder and media recorder?

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.


1 Answers

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

like image 149
Jason Avatar answered Sep 20 '22 22:09

Jason