docs/doc/reference/com/google/android/exoplayer2/FormatHolder.html
Package com.google.android.exoplayer2
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classFormatHolderextends[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.
Holds a Format.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| DrmSession | drmSession |
Deprecated.
An accompanying context for decrypting samples in the format.
|
| Format | format |
Deprecated.
The held Format.
|
Constructors | Constructor | Description |
| --- | --- |
| FormatHolder() |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | clear() |
Deprecated.
Clears the holder. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
@Nullable
public[DrmSession](drm/DrmSession.html "interface in com.google.android.exoplayer2.drm")drmSession
Deprecated.
An accompanying context for decrypting samples in the format.
-
@Nullable
public[Format](Format.html "class in com.google.android.exoplayer2")format
Deprecated.
The held Format.
-
public FormatHolder()
Deprecated.
-
public void clear()
Deprecated.
Clears the holder.