docs/doc/reference/com/google/android/exoplayer2/extractor/GaplessInfoHolder.html
Package com.google.android.exoplayer2.extractor
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classGaplessInfoHolderextends[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.
Holder for gapless playback information.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| int | encoderDelay |
Deprecated.
The number of samples to trim from the start of the decoded audio stream, or Format.NO_VALUE if not set.
|
| int | encoderPadding |
Deprecated.
The number of samples to trim from the end of the decoded audio stream, or Format.NO_VALUE if not set.
|
Constructors | Constructor | Description |
| --- | --- |
| GaplessInfoHolder() |
Deprecated.
Creates a new holder for gapless playback information. |
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | hasGaplessInfo() |
Deprecated.
Returns whether encoderDelay and encoderPadding have been set.
|
| boolean | setFromMetadata(Metadata metadata) |
Deprecated.
Populates the holder with data parsed from ID3 Metadata.
|
| boolean | setFromXingHeaderValue(int value) |
Deprecated.
Populates the holder with data from an MP3 Xing header, if valid and non-zero. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public int encoderDelay
Deprecated.
The number of samples to trim from the start of the decoded audio stream, or Format.NO_VALUE if not set.
-
public int encoderPadding
Deprecated.
The number of samples to trim from the end of the decoded audio stream, or Format.NO_VALUE if not set.
-
public GaplessInfoHolder()
Deprecated.
Creates a new holder for gapless playback information.
-
public boolean setFromXingHeaderValue(int value)
Deprecated.
Populates the holder with data from an MP3 Xing header, if valid and non-zero.
Parameters:value - The 24-bit value to decode.Returns:Whether the holder was populated.
-
public boolean setFromMetadata([Metadata](../metadata/Metadata.html "class in com.google.android.exoplayer2.metadata")metadata)
Deprecated.
Populates the holder with data parsed from ID3 Metadata.
Parameters:metadata - The metadata from which to parse the gapless information.Returns:Whether the holder was populated.
-
public boolean hasGaplessInfo()
Deprecated.
Returns whether encoderDelay and encoderPadding have been set.