Class SpliceInfoDecoder
- java.lang.Object
-
- com.google.android.exoplayer2.metadata.SimpleMetadataDecoder
-
- com.google.android.exoplayer2.metadata.scte35.SpliceInfoDecoder
-
- All Implemented Interfaces:
MetadataDecoder
@Deprecated public final class SpliceInfoDecoder extends SimpleMetadataDecoder
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.Decodes splice info sections and produces splice commands.
-
-
Constructor Summary
Constructors Constructor Description SpliceInfoDecoder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Metadata
decode(MetadataInputBuffer inputBuffer, ByteBuffer buffer)
Deprecated.Called bySimpleMetadataDecoder.decode(MetadataInputBuffer)
after input buffer validation has been performed, except in the case thatBuffer.isDecodeOnly()
istrue
.-
Methods inherited from class com.google.android.exoplayer2.metadata.SimpleMetadataDecoder
decode
-
-
-
-
Method Detail
-
decode
protected Metadata decode(MetadataInputBuffer inputBuffer, ByteBuffer buffer)
Deprecated.Description copied from class:SimpleMetadataDecoder
Called bySimpleMetadataDecoder.decode(MetadataInputBuffer)
after input buffer validation has been performed, except in the case thatBuffer.isDecodeOnly()
istrue
.- Specified by:
decode
in classSimpleMetadataDecoder
- Parameters:
inputBuffer
- The input buffer to decode.buffer
- The input buffer'sdata buffer
, for convenience. Validation bySimpleMetadataDecoder.decode(com.google.android.exoplayer2.metadata.MetadataInputBuffer)
guarantees thatByteBuffer.hasArray()
,Buffer.position()
andByteBuffer.arrayOffset()
aretrue
,0
and0
respectively.- Returns:
- The decoded metadata object, or
null
if the metadata could not be decoded.
-
-