Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public final class

MediaRecorder.OutputFormat

extends Object
java.lang.Object
   ↳ android.media.MediaRecorder.OutputFormat

Class Overview

Defines the output format. These constants are used with setOutputFormat(int) .

Summary

Constants
int AAC_ADTS AAC ADTS file format
int AMR_NB AMR NB file format
int AMR_WB AMR WB file format
int DEFAULT
int MPEG_4 MPEG4 media file format
int RAW_AMR This constant was deprecated in API level 16. Deprecated in favor of MediaRecorder.OutputFormat.AMR_NB
int THREE_GPP 3GPP media file format
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int AAC_ADTS

AAC ADTS file format

Constant Value: 6 (0x00000006)

public static final int AMR_NB

AMR NB file format

Constant Value: 3 (0x00000003)

public static final int AMR_WB

AMR WB file format

Constant Value: 4 (0x00000004)

public static final int DEFAULT

Added in API level 1

Constant Value: 0 (0x00000000)

public static final int MPEG_4

Added in API level 1

MPEG4 media file format

Constant Value: 2 (0x00000002)

public static final int RAW_AMR

Added in API level 3

This constant was deprecated in API level 16.
Deprecated in favor of MediaRecorder.OutputFormat.AMR_NB

AMR NB file format

Constant Value: 3 (0x00000003)

public static final int THREE_GPP

Added in API level 1

3GPP media file format

Constant Value: 1 (0x00000001)