Back to Exoplayer

FormatHolder (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/FormatHolder.html

latest2.5 KB
Original Source

Package com.google.android.exoplayer2

Class FormatHolder


[@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.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | DrmSession | drmSession | Deprecated.

An accompanying context for decrypting samples in the format. | | Format | format | Deprecated.

The held Format. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | FormatHolder() | Deprecated. |

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | clear() | Deprecated.

Clears the holder. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

drmSession

@Nullable
public[DrmSession](drm/DrmSession.html "interface in com.google.android.exoplayer2.drm")drmSession

Deprecated.

An accompanying context for decrypting samples in the format.

- 

format

@Nullable
public[Format](Format.html "class in com.google.android.exoplayer2")format

Deprecated.

The held Format.

Constructor Detail

- 

FormatHolder

public FormatHolder()

Deprecated.

Method Detail

- 

clear

public void clear()

Deprecated.

Clears the holder.