Class EventMessageEncoder

  • @Deprecated
    public final class EventMessageEncoder
    extends Object
    Deprecated. 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 by EventMessageDecoder. This class isn't thread safe.
    • Constructor Detail

      • EventMessageEncoder

        public EventMessageEncoder()
    • Method Detail

      • encode

        public byte[] encode​(EventMessage eventMessage)
        Encodes an EventMessage to a byte array that can be decoded by EventMessageDecoder.
        eventMessage - The event message to be encoded.
        The serialized byte array.