docs/doc/reference/com/google/android/exoplayer2/util/FileTypes.html
Package com.google.android.exoplayer2.util
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classFileTypesextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Defines common file type constants and helper methods.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static interface | FileTypes.Type |
Deprecated.
File types. |
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static int | AC3 |
Deprecated.
File type for the AC-3 and E-AC-3 formats.
|
| static int | AC4 |
Deprecated.
File type for the AC-4 format.
|
| static int | ADTS |
Deprecated.
File type for the ADTS format.
|
| static int | AMR |
Deprecated.
File type for the AMR format.
|
| static int | AVI |
Deprecated.
File type for the AVI format.
|
| static int | FLAC |
Deprecated.
File type for the FLAC format.
|
| static int | FLV |
Deprecated.
File type for the FLV format.
|
| static int | JPEG |
Deprecated.
File type for the JPEG format.
|
| static int | MATROSKA |
Deprecated.
File type for the Matroska and WebM formats.
|
| static int | MIDI |
Deprecated.
File type for the MIDI format.
|
| static int | MP3 |
Deprecated.
File type for the MP3 format.
|
| static int | MP4 |
Deprecated.
File type for the MP4 format.
|
| static int | OGG |
Deprecated.
File type for the Ogg format.
|
| static int | PS |
Deprecated.
File type for the MPEG-PS format.
|
| static int | TS |
Deprecated.
File type for the MPEG-TS format.
|
| static int | UNKNOWN |
Deprecated.
Unknown file type.
|
| static int | WAV |
Deprecated.
File type for the WAV format.
|
| static int | WEBVTT |
Deprecated.
File type for the WebVTT format. |
All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| static @com.google.android.exoplayer2.util.FileTypes.Type int | inferFileTypeFromMimeType(String mimeType) |
Deprecated.
Returns the FileTypes.Type corresponding to the MIME type provided.
|
| static @com.google.android.exoplayer2.util.FileTypes.Type int | inferFileTypeFromResponseHeaders(Map<String,List<String>> responseHeaders) |
Deprecated.
Returns the FileTypes.Type corresponding to the response headers provided.
|
| static @com.google.android.exoplayer2.util.FileTypes.Type int | inferFileTypeFromUri(Uri uri) |
Deprecated.
Returns the FileTypes.Type corresponding to the Uri provided.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final int UNKNOWN
Deprecated.
Unknown file type. See Also:Constant Field Values
-
public static final int AC3
Deprecated.
File type for the AC-3 and E-AC-3 formats. See Also:Constant Field Values
-
public static final int AC4
Deprecated.
File type for the AC-4 format. See Also:Constant Field Values
-
public static final int ADTS
Deprecated.
File type for the ADTS format. See Also:Constant Field Values
-
public static final int AMR
Deprecated.
File type for the AMR format. See Also:Constant Field Values
-
public static final int FLAC
Deprecated.
File type for the FLAC format. See Also:Constant Field Values
-
public static final int FLV
Deprecated.
File type for the FLV format. See Also:Constant Field Values
-
public static final int MATROSKA
Deprecated.
File type for the Matroska and WebM formats. See Also:Constant Field Values
-
public static final int MP3
Deprecated.
File type for the MP3 format. See Also:Constant Field Values
-
public static final int MP4
Deprecated.
File type for the MP4 format. See Also:Constant Field Values
-
public static final int OGG
Deprecated.
File type for the Ogg format. See Also:Constant Field Values
-
public static final int PS
Deprecated.
File type for the MPEG-PS format. See Also:Constant Field Values
-
public static final int TS
Deprecated.
File type for the MPEG-TS format. See Also:Constant Field Values
-
public static final int WAV
Deprecated.
File type for the WAV format. See Also:Constant Field Values
-
public static final int WEBVTT
Deprecated.
File type for the WebVTT format. See Also:Constant Field Values
-
public static final int JPEG
Deprecated.
File type for the JPEG format. See Also:Constant Field Values
-
public static final int MIDI
Deprecated.
File type for the MIDI format. See Also:Constant Field Values
-
public static final int AVI
Deprecated.
File type for the AVI format. See Also:Constant Field Values
-
public static @com.google.android.exoplayer2.util.FileTypes.Type int inferFileTypeFromResponseHeaders([Map](https://developer.android.com/reference/java/util/Map.html "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang"),[List](https://developer.android.com/reference/java/util/List.html?is-external=true "class or interface in java.util")<[String](https://developer.android.com/reference/java/lang/String.html?is-external=true "class or interface in java.lang")>> responseHeaders)
Deprecated.
Returns the FileTypes.Type corresponding to the response headers provided.
-
public static @com.google.android.exoplayer2.util.FileTypes.Type int inferFileTypeFromMimeType(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")mimeType)
Deprecated.
Returns the FileTypes.Type corresponding to the MIME type provided.
Returns UNKNOWN if the MIME type is null.
-
public static @com.google.android.exoplayer2.util.FileTypes.Type int inferFileTypeFromUri([Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")uri)
Deprecated.
Returns the FileTypes.Type corresponding to the Uri provided.