docs/doc/reference/com/google/android/exoplayer2/source/mediaparser/MediaParserUtil.html
Package com.google.android.exoplayer2.source.mediaparser
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classMediaParserUtilextends[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.
Miscellaneous constants and utility methods related to the MediaParser integration.
For documentation on constants, please see the MediaParser documentation.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static String | PARAMETER_EAGERLY_EXPOSE_TRACK_TYPE |
Deprecated.
|
| static String | PARAMETER_EXPOSE_CAPTION_FORMATS |
Deprecated.
|
| static String | PARAMETER_EXPOSE_CHUNK_INDEX_AS_MEDIA_FORMAT |
Deprecated.
|
| static String | PARAMETER_EXPOSE_DUMMY_SEEK_MAP |
Deprecated.
|
| static String | PARAMETER_IGNORE_TIMESTAMP_OFFSET |
Deprecated.
|
| static String | PARAMETER_IN_BAND_CRYPTO_INFO |
Deprecated.
|
| static String | PARAMETER_INCLUDE_SUPPLEMENTAL_DATA |
Deprecated.
|
| static String | PARAMETER_OVERRIDE_IN_BAND_CAPTION_DECLARATIONS |
Deprecated.
|
All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| static void | setLogSessionIdOnMediaParser(MediaParser mediaParser, PlayerId playerId) |
Deprecated.
Calls MediaParser.setLogSessionId(LogSessionId).
|
| static MediaFormat | toCaptionsMediaFormat(Format format) |
Deprecated.
Returns a MediaFormat with equivalent MediaFormat.KEY_MIME and MediaFormat.KEY_CAPTION_SERVICE_NUMBER to the given Format.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")PARAMETER_IN_BAND_CRYPTO_INFO
Deprecated. See Also:Constant Field Values
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")PARAMETER_INCLUDE_SUPPLEMENTAL_DATA
Deprecated. See Also:Constant Field Values
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")PARAMETER_EAGERLY_EXPOSE_TRACK_TYPE
Deprecated. See Also:Constant Field Values
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")PARAMETER_EXPOSE_DUMMY_SEEK_MAP
Deprecated. See Also:Constant Field Values
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")PARAMETER_EXPOSE_CHUNK_INDEX_AS_MEDIA_FORMAT
Deprecated. See Also:Constant Field Values
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")PARAMETER_OVERRIDE_IN_BAND_CAPTION_DECLARATIONS
Deprecated. See Also:Constant Field Values
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")PARAMETER_EXPOSE_CAPTION_FORMATS
Deprecated. See Also:Constant Field Values
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")PARAMETER_IGNORE_TIMESTAMP_OFFSET
Deprecated. See Also:Constant Field Values
-
public static[MediaFormat](https://developer.android.com/reference/android/media/MediaFormat.html "class or interface in android.media")toCaptionsMediaFormat([Format](../../Format.html "class in com.google.android.exoplayer2")format)
Deprecated.
Returns a MediaFormat with equivalent MediaFormat.KEY_MIME and MediaFormat.KEY_CAPTION_SERVICE_NUMBER to the given Format.
-
@RequiresApi(31)
public static void setLogSessionIdOnMediaParser([MediaParser](https://developer.android.com/reference/android/media/MediaParser.html "class or interface in android.media")mediaParser,[PlayerId](../../analytics/PlayerId.html "class in com.google.android.exoplayer2.analytics")playerId)
Deprecated.
Calls MediaParser.setLogSessionId(LogSessionId).
Parameters:mediaParser - The MediaParser to call the method on.playerId - The PlayerId to obtain the LogSessionId from.