Class GaplessInfoHolder
- java.lang.Object
-
- com.google.android.exoplayer2.extractor.GaplessInfoHolder
-
@Deprecated public final class GaplessInfoHolder 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.Holder for gapless playback information.
-
-
Field Summary
Fields Modifier and Type Field Description intencoderDelayDeprecated.The number of samples to trim from the start of the decoded audio stream, orFormat.NO_VALUEif not set.intencoderPaddingDeprecated.The number of samples to trim from the end of the decoded audio stream, orFormat.NO_VALUEif not set.
-
Constructor Summary
Constructors Constructor Description GaplessInfoHolder()Deprecated.Creates a new holder for gapless playback information.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanhasGaplessInfo()Deprecated.Returns whetherencoderDelayandencoderPaddinghave been set.booleansetFromMetadata(Metadata metadata)Deprecated.Populates the holder with data parsed from ID3Metadata.booleansetFromXingHeaderValue(int value)Deprecated.Populates the holder with data from an MP3 Xing header, if valid and non-zero.
-
-
-
Field Detail
-
encoderDelay
public int encoderDelay
Deprecated.The number of samples to trim from the start of the decoded audio stream, orFormat.NO_VALUEif not set.
-
encoderPadding
public int encoderPadding
Deprecated.The number of samples to trim from the end of the decoded audio stream, orFormat.NO_VALUEif not set.
-
-
Method Detail
-
setFromXingHeaderValue
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.
-
setFromMetadata
public boolean setFromMetadata(Metadata metadata)
Deprecated.Populates the holder with data parsed from ID3Metadata.- Parameters:
metadata- The metadata from which to parse the gapless information.- Returns:
- Whether the holder was populated.
-
hasGaplessInfo
public boolean hasGaplessInfo()
Deprecated.Returns whetherencoderDelayandencoderPaddinghave been set.
-
-