Class EventMessageDecoder
- java.lang.Object
-
- com.google.android.exoplayer2.metadata.SimpleMetadataDecoder
-
- com.google.android.exoplayer2.metadata.emsg.EventMessageDecoder
-
- All Implemented Interfaces:
MetadataDecoder
@Deprecated public final class EventMessageDecoder 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 data encoded byEventMessageEncoder
.
-
-
Constructor Summary
Constructors Constructor Description EventMessageDecoder()
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
.EventMessage
decode(ParsableByteArray emsgData)
Deprecated.-
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.
-
decode
public EventMessage decode(ParsableByteArray emsgData)
Deprecated.
-
-