Class 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 by EventMessageDecoder. This class isn't thread safe.
    • Constructor Detail

      • EventMessageEncoder

        public EventMessageEncoder()
        Deprecated.
    • Method Detail

      • encode

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