Class MediaParserUtil
- java.lang.Object
-
- com.google.android.exoplayer2.source.mediaparser.MediaParserUtil
-
@Deprecated public final class MediaParserUtil 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.Miscellaneous constants and utility methods related to theMediaParserintegration.For documentation on constants, please see the
MediaParserdocumentation.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAMETER_EAGERLY_EXPOSE_TRACK_TYPEDeprecated.static StringPARAMETER_EXPOSE_CAPTION_FORMATSDeprecated.static StringPARAMETER_EXPOSE_CHUNK_INDEX_AS_MEDIA_FORMATDeprecated.static StringPARAMETER_EXPOSE_DUMMY_SEEK_MAPDeprecated.static StringPARAMETER_IGNORE_TIMESTAMP_OFFSETDeprecated.static StringPARAMETER_IN_BAND_CRYPTO_INFODeprecated.static StringPARAMETER_INCLUDE_SUPPLEMENTAL_DATADeprecated.static StringPARAMETER_OVERRIDE_IN_BAND_CAPTION_DECLARATIONSDeprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidsetLogSessionIdOnMediaParser(MediaParser mediaParser, PlayerId playerId)Deprecated.static MediaFormattoCaptionsMediaFormat(Format format)Deprecated.Returns aMediaFormatwith equivalentMediaFormat.KEY_MIMEandMediaFormat.KEY_CAPTION_SERVICE_NUMBERto the givenFormat.
-
-
-
Field Detail
-
PARAMETER_IN_BAND_CRYPTO_INFO
public static final String PARAMETER_IN_BAND_CRYPTO_INFO
Deprecated.- See Also:
- Constant Field Values
-
PARAMETER_INCLUDE_SUPPLEMENTAL_DATA
public static final String PARAMETER_INCLUDE_SUPPLEMENTAL_DATA
Deprecated.- See Also:
- Constant Field Values
-
PARAMETER_EAGERLY_EXPOSE_TRACK_TYPE
public static final String PARAMETER_EAGERLY_EXPOSE_TRACK_TYPE
Deprecated.- See Also:
- Constant Field Values
-
PARAMETER_EXPOSE_DUMMY_SEEK_MAP
public static final String PARAMETER_EXPOSE_DUMMY_SEEK_MAP
Deprecated.- See Also:
- Constant Field Values
-
PARAMETER_EXPOSE_CHUNK_INDEX_AS_MEDIA_FORMAT
public static final String PARAMETER_EXPOSE_CHUNK_INDEX_AS_MEDIA_FORMAT
Deprecated.- See Also:
- Constant Field Values
-
PARAMETER_OVERRIDE_IN_BAND_CAPTION_DECLARATIONS
public static final String PARAMETER_OVERRIDE_IN_BAND_CAPTION_DECLARATIONS
Deprecated.- See Also:
- Constant Field Values
-
PARAMETER_EXPOSE_CAPTION_FORMATS
public static final String PARAMETER_EXPOSE_CAPTION_FORMATS
Deprecated.- See Also:
- Constant Field Values
-
PARAMETER_IGNORE_TIMESTAMP_OFFSET
public static final String PARAMETER_IGNORE_TIMESTAMP_OFFSET
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
toCaptionsMediaFormat
public static MediaFormat toCaptionsMediaFormat(Format format)
Deprecated.Returns aMediaFormatwith equivalentMediaFormat.KEY_MIMEandMediaFormat.KEY_CAPTION_SERVICE_NUMBERto the givenFormat.
-
setLogSessionIdOnMediaParser
@RequiresApi(31) public static void setLogSessionIdOnMediaParser(MediaParser mediaParser, PlayerId playerId)
Deprecated.- Parameters:
mediaParser- TheMediaParserto call the method on.playerId- ThePlayerIdto obtain theLogSessionIdfrom.
-
-