Class FileTypes
- java.lang.Object
-
- com.google.android.exoplayer2.util.FileTypes
-
@Deprecated public final class FileTypes extends Object
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 Class Summary
Nested Classes Modifier and Type Class Description static interfaceFileTypes.TypeDeprecated.File types.
-
Field Summary
Fields Modifier and Type Field Description static intAC3Deprecated.File type for the AC-3 and E-AC-3 formats.static intAC4Deprecated.File type for the AC-4 format.static intADTSDeprecated.File type for the ADTS format.static intAMRDeprecated.File type for the AMR format.static intAVIDeprecated.File type for the AVI format.static intFLACDeprecated.File type for the FLAC format.static intFLVDeprecated.File type for the FLV format.static intJPEGDeprecated.File type for the JPEG format.static intMATROSKADeprecated.File type for the Matroska and WebM formats.static intMIDIDeprecated.File type for the MIDI format.static intMP3Deprecated.File type for the MP3 format.static intMP4Deprecated.File type for the MP4 format.static intOGGDeprecated.File type for the Ogg format.static intPSDeprecated.File type for the MPEG-PS format.static intTSDeprecated.File type for the MPEG-TS format.static intUNKNOWNDeprecated.Unknown file type.static intWAVDeprecated.File type for the WAV format.static intWEBVTTDeprecated.File type for the WebVTT format.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static @com.google.android.exoplayer2.util.FileTypes.Type intinferFileTypeFromMimeType(String mimeType)Deprecated.Returns theFileTypes.Typecorresponding to the MIME type provided.static @com.google.android.exoplayer2.util.FileTypes.Type intinferFileTypeFromResponseHeaders(Map<String,List<String>> responseHeaders)Deprecated.Returns theFileTypes.Typecorresponding to the response headers provided.static @com.google.android.exoplayer2.util.FileTypes.Type intinferFileTypeFromUri(Uri uri)Deprecated.Returns theFileTypes.Typecorresponding to theUriprovided.
-
-
-
Field Detail
-
UNKNOWN
public static final int UNKNOWN
Deprecated.Unknown file type.- See Also:
- Constant Field Values
-
AC3
public static final int AC3
Deprecated.File type for the AC-3 and E-AC-3 formats.- See Also:
- Constant Field Values
-
AC4
public static final int AC4
Deprecated.File type for the AC-4 format.- See Also:
- Constant Field Values
-
ADTS
public static final int ADTS
Deprecated.File type for the ADTS format.- See Also:
- Constant Field Values
-
AMR
public static final int AMR
Deprecated.File type for the AMR format.- See Also:
- Constant Field Values
-
FLAC
public static final int FLAC
Deprecated.File type for the FLAC format.- See Also:
- Constant Field Values
-
FLV
public static final int FLV
Deprecated.File type for the FLV format.- See Also:
- Constant Field Values
-
MATROSKA
public static final int MATROSKA
Deprecated.File type for the Matroska and WebM formats.- See Also:
- Constant Field Values
-
MP3
public static final int MP3
Deprecated.File type for the MP3 format.- See Also:
- Constant Field Values
-
MP4
public static final int MP4
Deprecated.File type for the MP4 format.- See Also:
- Constant Field Values
-
OGG
public static final int OGG
Deprecated.File type for the Ogg format.- See Also:
- Constant Field Values
-
PS
public static final int PS
Deprecated.File type for the MPEG-PS format.- See Also:
- Constant Field Values
-
TS
public static final int TS
Deprecated.File type for the MPEG-TS format.- See Also:
- Constant Field Values
-
WAV
public static final int WAV
Deprecated.File type for the WAV format.- See Also:
- Constant Field Values
-
WEBVTT
public static final int WEBVTT
Deprecated.File type for the WebVTT format.- See Also:
- Constant Field Values
-
JPEG
public static final int JPEG
Deprecated.File type for the JPEG format.- See Also:
- Constant Field Values
-
MIDI
public static final int MIDI
Deprecated.File type for the MIDI format.- See Also:
- Constant Field Values
-
AVI
public static final int AVI
Deprecated.File type for the AVI format.- See Also:
- Constant Field Values
-
-
Method Detail
-
inferFileTypeFromResponseHeaders
public static @com.google.android.exoplayer2.util.FileTypes.Type int inferFileTypeFromResponseHeaders(Map<String,List<String>> responseHeaders)
Deprecated.Returns theFileTypes.Typecorresponding to the response headers provided.
-
inferFileTypeFromMimeType
public static @com.google.android.exoplayer2.util.FileTypes.Type int inferFileTypeFromMimeType(@Nullable String mimeType)Deprecated.Returns theFileTypes.Typecorresponding to the MIME type provided.Returns
UNKNOWNif the MIME type isnull.
-
inferFileTypeFromUri
public static @com.google.android.exoplayer2.util.FileTypes.Type int inferFileTypeFromUri(Uri uri)
Deprecated.Returns theFileTypes.Typecorresponding to theUriprovided.
-
-