Class EventMessageEncoder
- java.lang.Object
-
- com.google.android.exoplayer2.metadata.emsg.EventMessageEncoder
-
@Deprecated public final class EventMessageEncoder 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.Encodes data that can be decoded byEventMessageDecoder
. This class isn't thread safe.
-
-
Constructor Summary
Constructors Constructor Description EventMessageEncoder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description byte[]
encode(EventMessage eventMessage)
Deprecated.Encodes anEventMessage
to a byte array that can be decoded byEventMessageDecoder
.
-
-
-
Method Detail
-
encode
public byte[] encode(EventMessage eventMessage)
Deprecated.Encodes anEventMessage
to a byte array that can be decoded byEventMessageDecoder
.- Parameters:
eventMessage
- The event message to be encoded.- Returns:
- The serialized byte array.
-
-